Sujet : Re: Back & Forth - Co-routines
De : hohl (at) *nospam* isartext.de (HenryHH)
Groupes : comp.lang.forthDate : 06. Feb 2025, 07:47:59
Autres entêtes
Organisation : novaBBS
Message-ID : <73a87ff17586b02ae110516bfb76956e@www.novabbs.com>
References : 1 2 3 4 5
User-Agent : Rocksolid Light
On Tue, 4 Feb 2025 12:26:26 +0000,
albert@spenarnc.xs4all.nl wrote:
... if they are absolutely necessary I use my enhanced `[ instead
of any style of locals
>
: root [ variable a variable b variable c ]
c ! b ! a !
\ now insert the famous quadratic root formula
[ hide a hide b hide c ] \ Prevent "not unique messages"
;
Hello Albert,
why is an enhanced [ necessary for this?
Couldn't you simply write:
variable a variable b variable c
: root ( a b c -- root)
c ! b ! a !
\ now insert the famous quadratic root formula
;
hide a hide b hide c \ Prevent "not unique messages"
Henry