M
Magicloud Magiclouds
Hello,
In `ri 'Array#*'`, it says that the result is the concatenation of
copies of self if the argument is an int.
So, it is "COPY".
Then why something like '[[0]] * 10', returns an array, that each
element is a pointer to the first element?
Does this mean "copy of an Array" is just a duplicated pointer?
Thanks.
In `ri 'Array#*'`, it says that the result is the concatenation of
copies of self if the argument is an int.
So, it is "COPY".
Then why something like '[[0]] * 10', returns an array, that each
element is a pointer to the first element?
Does this mean "copy of an Array" is just a duplicated pointer?
Thanks.