Liste des Groupes | Revenir à cl forth |
On 30/04/2025 11:58 pm, Hans Bezemer wrote:In 4tH, ABORT is really abort. It does what the label says. It can't be caught. If you want to abort, I assume you want to abort. If you wanna catch it, use THROW. C'mon. I designed it as a man's language ;-)On 30-04-2025 04:37, dxf wrote:For ABORT" the string is suppressed and only the code (-2) is left.On 30/04/2025 2:50 am, Hans Bezemer wrote:Surprise, surprise - THROW" calls THROW (actually, it inlines the whole shebang). So - what do you think?...>
To force myself to add messages to THROWs (especially in libs with special conditions) I added THROW" - it works like a combination of ABORT" and THROW. You need to specify a THROW code, you need to specify a flag and you need to specify a message.
What happens in the case of CATCH - what's left on the stack?
>
Is that what THROW" does with the string?
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?
Les messages affichés proviennent d'usenet.