RosettaCodeData/Task/Address-of-a-variable/Sidef/address-of-a-variable.sidef
2023-07-01 13:44:08 -04: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