Sujet : Re: What with `` BL WORD ''
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 15. Dec 2024, 17:08:33
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Dec15.170833@mips.complang.tuwien.ac.at>
References : 1
User-Agent : xrn 10.11
albert@spenarnc.xs4all.nl writes:
In view of Gigabyte memories, a lot of interference could also be
avoided, if BL WORD were entitled to ALLOT the space.
A permanent region could serve as a transient region, so
from the users of WORD there is no problem.
>
: WORD WORD DUP COUNT ALLOT ALIGN ; \ Or some such.
>
Is this in conflict with the standard?
Yes. In
create foo bl word bar drop 1234 ,
foo @ .
the standard specifies that this prints "1234", but with your
redefinition of WORD, it does not.
More formally, the standard specifies that the memory allocated by ,
is contiguous with the data space of FOO, and WORD is not one of the
words that terminates a contiguous region.
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/ EuroForth 2024: https://euro.theforth.net