Sujet : Re: Parsing timestamps?
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forthDate : 03. Jul 2025, 12:54:54
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$378073ba$59e0ace6@3bcca8685d19ab99>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
87ikkaxhy1.fsf@nightsong.com>,
Paul Rubin <
no.email@nospam.invalid> wrote:
Hans Bezemer <the.beez.speaks@gmail.com> writes:
1. Adding general locals is trivial. It takes just one single line of
Forth.
>
I don't see how to do it in one line, and trivial is a subjective term.
I'd say in any case that it's not too difficult, but one line seems
overoptimistic. Particularly, you need something like (LOCAL) in the
VM. The rest is just some extensions to the colon compiler. Your
mention of it taking 3-4 screens sounded within reason to me, and I
don't consider that to be a lot of code.
Not one line, but short leaning on existing words.
Also these LOCAL's are not usable in recursed definition.
Example in the context of ciforth.
WANT VALUE [{
: LOCAL
POSTPONE [{ _ VALUE }] POSTPONE TO LATEST >LFA @
POSTPONE LITERAL POSTPONE EXECUTE
; IMMEDIATE
Groetjes Albert
-- The Chinese government is satisfied with its military superiority over USA.The next 5 year plan has as primary goal to advance life expectancyover 80 years, like Western Europe.