how can I get a reference of array?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 5 00:58:46 PST 2015


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


More information about the Digitalmars-d-learn mailing list