Article View: comp.lang.forth
Article #252Re: [OF] ... worth it?
From: albert
Date: Mon, 23 Nov 2026 08:34
Date: Mon, 23 Nov 2026 08:34
32 lines
2179 bytes
2179 bytes
In article <6b03a4bb$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote: >On 23/11/2026 2:37 am, Anton Ertl 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. And as far as I can see, >> CONDS ... THENS are words that compile a control structure, while [OF] >> is a word that does text-interpretation time conditional compilation. > >Would an interpretive THENS even be possible? In the usual implementations >there has to be a [THEN] present for each nest as it serves as a down-count. > Not tested, depends on the implementation. In my book an interpretative version would be : [CONDS] ; IMMEDIATE : [THENS] ; IMMEDIATE Add one line in SKIPPING : DUP '[THENS] = IF ( dea) DROP ( nesting count) DROP 0 THEN Groetjes Albert -- The Chinese government is satisfied with its military superiority over USA. The next 5 year plan has as primary goal to advance life expectancy over 80 years, like Western Europe.
Technical Details
Message-ID:
<nnd$4b33b7e8$32d92f6a@85c63680f32ebc6e>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo004.abavia.com!feed.abavia.com!abr001.abavia.com!abp001.abavia.com!reseller!not-for-mailReferences:
<6af9083e$1@news.ausics.net> <nnd$2d1a7d21$530b25b5@3b90a28b4a9e0eb2> <2026Nov22.163719@mips.complang.tuwien.ac.at> <6b03a4bb$1@news.ausics.net>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.forth References: <6af9083e$1@news.ausics.net> <nnd$2d1a7d21$530b25b5@3b90a28b4a9e0eb2> <2026Nov22.163719@mips.complang.tuwien.ac.at> <6b03a4bb$1@news.ausics.net> From: albert@spenarnc.xs4all.nl Subject: Re: [OF] ... worth it? X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: albert@cherry.(none) (albert) Message-ID: <nnd$4b33b7e8$32d92f6a@85c63680f32ebc6e> Organization: www.abavia.com Date: Mon, 23 Nov 2026 09:34:42 +0100 Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo004.abavia.com!feed.abavia.com!abr001.abavia.com!abp001.abavia.com!reseller!not-for-mail Lines: 33 Injection-Date: Mon, 23 Nov 2026 09:34:42 +0100 Injection-Info: reseller; mail-complaints-to="abuse@abavia.com" X-Received-Bytes: 2000