| Deutsch English Français Italiano |
|
<vuvtr3$2q017$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Stephen Pelc <stephen@vfxforth.com> Newsgroups: comp.lang.forth Subject: Re: Why dial-a-standard is not a thing in Forth Date: Thu, 1 May 2025 13:44:03 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: <vuvtr3$2q017$1@dont-email.me> References: <87bjtn2hct.fsf@gmail.com> <7aa5519d5cb072cb6f70e7680ec565b03c2f3e23@i2pn2.org> <nnd$3b017059$6aa9c908@b5507bbc6e704cf6> <5ce2cb85311aa91fcb7ab57c802aef09b3345163@i2pn2.org> <vuvl87$2i8nl$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=fixed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 01 May 2025 15:44:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="7b214be6f714658de2bde8693697c2e2"; logging-data="2949159"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GDgwQpZQbuzYh4D8+16WF" User-Agent: Usenapp for MacOS Cancel-Lock: sha1:n/Uy5JdEpkl33xOn2GIyca1sCbs= X-Usenapp: v1.27.4/l - Full License Bytes: 2289 On 1 May 2025 at 13:17:27 CEST, "John Doe" <john.doe@myemail.invalid> wrote: > 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 Sorry for the faIled transition to a new machine. Stephen -- Stephen Pelc, stephen@vfxforth.com Wodni & Pelc GmbH Vienna, Austria Tel: +44 (0)7803 903612, +34 649 662 974 http://www.vfxforth.com/downloads/VfxCommunity/ - free VFX Forth downloads