Sujet : Re: ADDRESSABLE: value-flavoured words
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 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.