Create an object at a given address: Difference between revisions
Create an object at a given address (view source)
Revision as of 01:07, 26 November 2017
, 6 years ago→{{header|Julia}}
mNo edit summary |
|||
Line 425:
println("intspace is $(intspace[1]), memory at $address, reference value $(anotherint[1])")
intspace[1] = 123456
println("Now, intspace is $(intspace[1]), memory at $address, reference value $(anotherint[1])")
anotherint[1] = 7890
println("Now, intspace is $(intspace[1]), memory at $address, reference value $(anotherint[1])")
end
Line 431 ⟶ 433:
</lang>
{{output}}<pre>
The address of intspace is Ptr{Void} @
intspace is 42, memory at Ptr{Void} @
Now, intspace is 123456, memory at Ptr{Void} @
Now, intspace is 7890, memory at Ptr{Void} @0x0000000007271030, reference value 7890
</pre>
|