Re: ADDRESSABLE: value-flavoured words

Liste des GroupesRevenir à cl forth 
Sujet : Re: ADDRESSABLE: value-flavoured words
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forth
Date : 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.html
comp.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/

Date Sujet#  Auteur
12 May 25 * ADDRESSABLE: value-flavoured words8Anton Ertl
12 May 25 +* Re: ADDRESSABLE: value-flavoured words2Stephen Pelc
12 May 25 i`- Re: ADDRESSABLE: value-flavoured words1Anton Ertl
13 May 25 +- Re: ADDRESSABLE: value-flavoured words1dxf
13 May 25 `* Re: ADDRESSABLE: value-flavoured words4Ruvim
13 May 25  +- Re: ADDRESSABLE: value-flavoured words1minforth
13 May 25  `* Re: ADDRESSABLE: value-flavoured words2Anton Ertl
14 May 25   `- Re: ADDRESSABLE: value-flavoured words1Ruvim

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal