Address of a variable: Difference between revisions

m
No edit summary
Line 1,241:
 
=={{header|M2000 Interpreter}}==
From version 12, VarptrVarPtr() can return address for variables and array items.
 
We can't set an address to a variable. We can link a variable name with an existing variable.
 
<syntaxhighlight lang="m2000 interpreter">
Line 1,252 ⟶ 1,254:
print z=x
print k(1,0,1)=x
link z to m
Print VarPtr(z)=VarPtr(m)
}
checkVarptr
Line 1,257 ⟶ 1,261:
{{out}}
<pre>
True
True
True
404

edits