Sujet : Re: VALUE and TO implementation
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.forthDate : 04. Aug 2024, 09:05:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87zfpsyaq8.fsf@nightsong.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
mhx@iae.nl (mhx) writes:
Am I the only one that thinks parsing words are an incredible nuisance?
I haven't followed this whole thing and didn't realize a sane
non-parsing TO was even possible. I've sometimes thought of a version
of VALUE that makes two separate words, for reading and writing the
value:
17 XVALUE foo
creates two words, "?foo" and "!foo". ?foo pushes the value from foo
(initially 17) onto the stack. !foo moves TOS to foo.