Sujet : Re: ADDRESSABLE: value-flavoured words
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 13. May 2025, 22:32:18
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2025May13.233218@mips.complang.tuwien.ac.at>
References : 1 2
User-Agent : xrn 10.11
Ruvim <
ruvim.pinka@gmail.com> writes:
Why does this name end with a colon?
Just `addressable` (without a colon) looks better.
Inside a locals definition {: ... :}, names ending in ":" are
reserved. So, to avoid potential conflicts with existing names in
existing standard code, the word used inside {: ... :} ends in a
colon. And consequently, the word using outside {: ... :} ends in a
colon, too.
: bar {: addressable: x -- y :}
5 addr x +! x ;
>
>
This declaration of `x` does not look good regardless of the colon.
I hope this makes you think twice about whether you really need an
addressable value-flavoured local.
- 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 2023 proceedings: http://www.euroforth.org/ef23/papers/EuroForth 2024 proceedings:
http://www.euroforth.org/ef24/papers/