RosettaCodeData/Task/Address-of-a-variable/Sidef/address-of-a-variable.sidef
2016-12-05 23:44:36 +01:00

3 lines
172 B
Text

var n = 42;
say Sys.refaddr(\n); # prints the address of the variable
say Sys.refaddr(n); # prints the address of the object at which the variable points to