how can I get a reference of array?
zhmt via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 5 01:05:06 PST 2015
On Thursday, 5 February 2015 at 08:58:47 UTC, bearophile wrote:
> zhmt:
>
>> Will arr.ptr change in the future?
>>
>> As the array add more members , it need more memroy, then
>> remalloc may be called, the pointer maybe change, then the
>> stored pointer will be invalid.
>>
>> Will this happen?
>
> Yes, it can happen.
>
> Bye,
> bearophile
Thx. I understand the difference between array pointer and
arr.ptr, they are not the same thing.
More information about the Digitalmars-d-learn
mailing list