Article View: comp.lang.forth
Article #258Re: [OF] ... worth it?
From: dxf
Date: Tue, 24 Nov 2026 08:22
Date: Tue, 24 Nov 2026 08:22
54 lines
2842 bytes
2842 bytes
On 23/11/2026 7:42 pm, Anton Ertl wrote:
> albert@spenarnc.xs4all.nl writes:
>> In article <2026Nov22.163719@mips.complang.tuwien.ac.at>,
>> Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:
>>> albert@spenarnc.xs4all.nl writes:
>>>> In article <6af9083e$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote:
>>>>> : [OF] ( x1 x2 -- | x1 )
>>>>> OVER = DUP IF NIP THEN POSTPONE [IF] ; IMMEDIATE
>>>>
>>>> I favour CONDS ... THENS introduced by Anton Ertl.
>>>
>>> As already mentioned in 2022, not by me.
>>
>> You have introduced it to me.
>
> When and how is that supposed to have happened?
>
> In my postings on c.l.f the first occurence of CONDS is in my posting
> from 2022 <2022Jun28.144956@mips.complang.tuwien.ac.at> where I cite
> your claim that you have it from me, and I deny it.
>
> My memory says that Gordon Charlton presented some way to finish
> several THENs at EuroForth '92 or '94, but when I look at the topics
> of his talks, he did not present it there (at least not in the listed
> talks, maybe as an impromptu talk), or maybe I am confusing him with
> someone else. The name he used for this word was END (IIRC).
What may be an early version of THENS appears in a Wil Baden file
'BADENCON.TXT'. The file I have is date-stamped 1990-01-04.
It defines the following:
: END [COMPILE] UNTIL ; IMMEDIATE
: ENDIF [COMPILE] THEN ; IMMEDIATE
: UNLESS COMPILE 0= [COMPILE] IF ; IMMEDIATE
: OF COMPILE OVER COMPILE = [COMPILE] IF COMPILE DROP ; IMMEDIATE
: THENS ( n) 0 DO ( ) [COMPILE] THEN LOOP; IMMEDIATE
with the example:
: CRAPS ( n -- )
2 OF ." You lose. " ELSE
3 OF ." You lose. " ELSE
7 OF ." You win. " ELSE
11 OF ." You win. " ELSE
12 OF ." You lose. " ELSE
( Otherwise:) . ." is your point. "
[ 5 ] THENS ;
AFAIR Baden later used COND THENS in the form we now know it.
Technical Details
Message-ID:
<6b054953$1@news.ausics.net>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mailReferences:
<6af9083e$1@news.ausics.net> <nnd$2d1a7d21$530b25b5@3b90a28b4a9e0eb2> <2026Nov22.163719@mips.complang.tuwien.ac.at> <nnd$11deec5e$4268155f@8455f23ea3fcc7d0> <2026Nov23.094237@mips.complang.tuwien.ac.at>Show Full Headers
Complete Article Headers
Date: Tue, 24 Nov 2026 19:22:44 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [OF] ... worth it? Newsgroups: comp.lang.forth References: <6af9083e$1@news.ausics.net> <nnd$2d1a7d21$530b25b5@3b90a28b4a9e0eb2> <2026Nov22.163719@mips.complang.tuwien.ac.at> <nnd$11deec5e$4268155f@8455f23ea3fcc7d0> <2026Nov23.094237@mips.complang.tuwien.ac.at> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <2026Nov23.094237@mips.complang.tuwien.ac.at> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: news.ausics.net Message-ID: <6b054953$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 54 X-Complaints: abuse@ausics.net Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail