Re: ADDRESSABLE: value-flavoured words

Liste des GroupesRevenir à cl forth 
Sujet : Re: ADDRESSABLE: value-flavoured words
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 13. May 2025, 06:29:35
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <ed85c89716e2445e96daf11a148c7aec39703d90@i2pn2.org>
References : 1
User-Agent : Mozilla Thunderbird
On 12/05/2025 5:40 pm, Anton Ertl wrote:
...
: bar {: addressable: x -- y :}
  5 addr x +! x ;
 
As you can see, it's hard to give simple examples for the use of ADDR
that are not contrived.

I use ADDR in assembler code to access VALUEs e.g.

  addr silencemax ) ax cmp

Since ADDR also works on my DEFERs I was able to avoid DEFER@ etc.

Bottom line: I don't use ADDR much (it would indicate I should be
using VARIABLE not VALUE) but very handy when I need to.


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