Sujet : Re: "Back & Forth" - Local variables
De : the.beez.speaks (at) *nospam* gmail.com (Hans Bezemer)
Groupes : comp.lang.forthDate : 08. Jan 2025, 19:11:53
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$65a6d402$1bfbf0ca@d49afc2a32e40cf2>
References : 1 2
User-Agent : Mozilla Thunderbird
On 08-01-2025 17:27,
albert@spenarnc.xs4all.nl wrote:
( my CO variant, using the return address)
: LOCAL R> SWAP DUP >R @ >R EXECUTE R> R> ! ;
VARIABLE A
VARIABLE B
\ I'm paranoid :)
8 a !
7 b !
: divide
A LOCAL
B LOCAL
B ! A ! A @ B @ /
. CR
;
15 3 divide a ? b ?
\ it doesn't mean they're not out to get you
Wow! This works! Can't say how solid it is.. but still!
Hans Bezemer