Deutsch   English   Français   Italiano  
<vutgtm$k0q4$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: sjack@dontemail.me (sjack)
Newsgroups: comp.lang.forth
Subject: Re: Why dial-a-standard is not a thing in Forth
Date: Wed, 30 Apr 2025 15:51:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vutgtm$k0q4$1@dont-email.me>
References: <87bjtn2hct.fsf@gmail.com> <vsbtst$1vdsj$1@dont-email.me> <908575911ef8d6ba989deee854aa33cecc39ab9a@i2pn2.org> <nnd$7cd5eca1$455e887d@ea22aa12ceb9f46f> <7aa5519d5cb072cb6f70e7680ec565b03c2f3e23@i2pn2.org>
Injection-Date: Wed, 30 Apr 2025 17:51:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fa77643dd2dc8d7048e0fe151f6c972e";
	logging-data="656196"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19CEMoayeK/hhQNcM8isBp2"
User-Agent: tin/2.6.4-20240224 ("Banff") (Linux/6.8.0-58-generic (x86_64))
Cancel-Lock: sha1:Ftzl8D50A3MmdXn/evWbbONxjV8=
Bytes: 1603

dxf <dxforth@gmail.com> wrote:
> 
> What happens in the case of CATCH - what's left on the stack?
> 

Nowadays I don't use catch/throw, not that I have anything against it;
I'm just being retro. But from past experience, if I recall right, the
data stack may have been reset to its former position at the time of
catch but the data on the stack could be dirty. Any on-error action,
e.g. i/o cleanup, prior to abort would be prudent in avoiding the
use of data left on the data stack (if catch hadn't restored it from 
a clone copy).

-- 
me