Sometimes you want to take the address of a value-like word. Because
this has some disadvantages, Gforth asks you to be explicit about it,
and use varue
(named that way because it combines
characteristics of a variable and a value) to declare the name.
Varue
( w "name" – ) gforth-1.0 “Varue”
Like value
, but you can also use addr name
;
in the future, varues may be less efficient than values.
2varue
( x1 x2 "name" – ) gforth-1.0 “2varue”
Like 2value
, but you can also use addr name
;
in the future, 2varues may be less efficient than 2values.
fvarue
( r "name" – ) gforth-1.0 “fvarue”
Like fvalue
, but you can also use addr name
;
in the future, fvarues may be less efficient than fvalues.
addr
( "name" – addr ) gforth-1.0 “addr”
provides the address addr of the varue, 2varue, or fvarue
name or a local name defined with one of wa: ca:
da: fa: xta:
.