Sujet : Re: VALUE and TO implementation
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.forthDate : 07. Aug 2024, 20:35:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87le18rurj.fsf@nightsong.com>
References : 1 2 3 4 5
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
albert@spenarnc.xs4all.nl writes:
Numbers (also denotations, such as strings) must be smart.
I've thought of having non-smart numbers in a small Forth. Instead of
123 you would say # 123 or something similar, where # is a parsing word
that emits LIT and the number. I remember that the eForth metacompiler
does something like that, to handle the case where the host and target
processors have differing number representations (e.g. word sizes).