Sujet : Re: Why dial-a-standard is not a thing in Forth
De : john.doe (at) *nospam* myemail.invalid (John Doe)
Groupes : comp.lang.forthDate : 01. May 2025, 12:17:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vuvl87$2i8nl$1@dont-email.me>
References : 1 2 3 4
User-Agent : Usenapp for MacOS
On 1 May 2025 at 03:23:53 CEST, "dxf" <
dxforth@gmail.com> wrote:
AFAIK on most forth systems exceptions generate either an error code or an
error message (the latter via ABORT" or caught code). In short, what good
is having both a msg and a code?
THROWs are defined to be defined by their throw number. Whether or not a
message is associated with the throw number is a factor of the Forth
implementation.
In VFX, the return to the text interpreter looks for a message associated with
the throw number and displays it if found.
There are three benefits of this.
1) it is less code to reuse a THROW by number rather than by text,
2) I can change the text in one place only for all uses,
3) Internationalisartion is much easier.
Stephen