Deutsch English Français Italiano |
<v8gklf$2appu$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ruvim <ruvim.pinka@gmail.com> Newsgroups: comp.lang.forth Subject: Re: VALUE and TO implementation Date: Thu, 1 Aug 2024 22:37:35 +0400 Organization: A noiseless patient Spider Lines: 36 Message-ID: <v8gklf$2appu$1@dont-email.me> References: <a1aab44ee3b1b56c2f54f2606e98d040@www.novabbs.com> <v8cuur$1go8k$1@dont-email.me> <2af79ef5abcec71a1d42a461b6bc56b8@www.novabbs.com> <v8dntr$1lcff$1@dont-email.me> <nnd$27689dde$7538ffdb@92380e43f13eb124> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 01 Aug 2024 20:37:36 +0200 (CEST) Injection-Info: dont-email.me; posting-host="254b45dced16aaea9a4a7ec8769b9b1a"; logging-data="2451262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7pBwCWYpIrAC1o2IE96Xh" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:kCm2goyuWRjJVEcOV7KJFps6/+w= Content-Language: en-US In-Reply-To: <nnd$27689dde$7538ffdb@92380e43f13eb124> Bytes: 2383 On 2024-08-01 16:01, albert@spenarnc.xs4all.nl wrote: > In article <v8dntr$1lcff$1@dont-email.me>, > Ruvim <ruvim.pinka@gmail.com> wrote: >> On 2024-07-31 13:41, mhx wrote: >>> I'm not sure that you can use a buggy program to test for an ambiguous >>> condition (looks like a top job for an eager lawyer). It would be >>> much better if the anomaly can be shown with a valid program. >> >> When we want to apply a parsing word to a calculated string, we can use >> "execute-parsing" (that can be defined in a standard way [1]). For a not >> parsing "to", this standard-compliant method will fail. >> >> >> A testcase: >> >> : apply-compiling(to) ( sd.name -- ) >> [: postpone to ;] execute-parsing >> ; > > This is foreseen. The standard stipulates that is not allowed > to POSTPONE TO Yes, I know. That is why I pointed to a standard-compliant implementation for "postpone" [2]. In Forth-2012, you can define a new "postpone" using "get-order", "traverse-wordlist", "name>compile", "compile," and "literal". And nothing in the standard prohibits applying this word to "to". [2] <https://github.com/ForthHub/discussion/discussions/103#user-content-solution> -- Ruvim