Sujet : Re: QUIT and ABORT (was: Why dial-a-standard is not a thing in Forth)
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forthDate : 04. May 2025, 16:05:04
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$1a6ce5d3$48a0451c@523f0bb07c7b89ce>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
2025May3.072517@mips.complang.tuwien.ac.at>,
Anton Ertl <
anton@mips.complang.tuwien.ac.at> wrote:
<SNIP>
>
Concerning the standard, the behaviour of Gforth is non-standard when
you invoke a word through -e, but if you want the standard behaviour,
just invoke the word from the Forth command line. The behaviour when
invoking the word through -e is more useful when using Forth as a
scripting language.
I don't think this -e behaviour is needed in an interpreted Forth.
You get the message right away anyhow.
For turnkey and scripts this behaviour is in fact the more useful.
ciforth does behave like this automatically.
~/PROJECT/ciforths/ciforth/TOOLS: cat gobeserk.frt
: doit 19 THROW ;
~/PROJECT/ciforths/ciforth/TOOLS: lina -c gobeserk.frt
~/PROJECT/ciforths/ciforth/TOOLS: gobeserk
? ciforth ERROR # 19 : CONDITIONALS NOT PAIRED
~/PROJECT/ciforths/ciforth/TOOLS: echo $?
19
So I saved the -e option meaning "load the electives screen".
>
- anton
Groetjes Albert
-- Temu exploits Christians: (Disclaimer, only 10 apostles)Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style WallArt For Home, Office And Garden Decor - Perfect For Windows, Bars,And Gifts For Friends Family And Colleagues.