Sujet : Re: THROW codes and ambiguous conditions
De : sean (at) *nospam* conman.org
Groupes : comp.lang.forthDate : 04. Jun 2025, 20:25:08
Autres entêtes
Organisation : Conman Laboratories
Message-ID : <101q6ik$10htc$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : tin/2.4.0-20160823 ("Octomore") (UNIX) (Linux/2.6.9-100.EL.plus.c4smp (i686))
It was thus said that the Great dxf <
dxforth@gmail.com> once stated:
Perhaps the TC went along with Mitch. CATCH THROW was his idea and
here's a bunch of codes to go with it. The extent to which a tiny forth
is going to use ANS is dubious.
What constitutes a "tiny Forth"? Because I just implemented ANS Forth [1]
for the 6809 [2], and I included CATCH and THROW. It's almost 12K in size
and for the wordsets it implements, it passes the ANS Forth test suite. I
implemented the EXCEPTION wordset because it seems a 2017 update mandated
it's use. While I'm not a fan of exceptions, it wasn't hard to implement
and it seemed better thought out than SYNONYM [4].
-spc
[1] I implemented CORE, CORE-EXT, DOUBLE, DOUBLE-EXT, EXCEPTION,
EXCEPTION-EXT, LOCAL, LOCAL-EXT, TOOLS, some of TOOLS-EXT [3],
SEARCH, SEARCH-EXT, STRING and STRING-EXT.
[2]
https://github.com/spc476/ANS-Forth[3] Words implemented from TOOLS-EXT: AHEAD, BYE, CS-PICK, CS_ROLL, N>R,
NAME>COMPILE, NAME>INTERPRET, NAME>STRING, NR>, STATE,
TRAVERSE-WORDLIST, [DEFINED], [ELSE], [IF], [THEN], [UNDEFINED].
[4] When reading about it [5], I decided I didn't want anything to do
with that quagmire of a word.
[5]
https://forth-standard.org/standard/tools/SYNONYM