Can't understand if deallocation happens?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 22 05:52:53 PST 2017


On Sunday, 22 January 2017 at 13:34:10 UTC, Suliman wrote:
>   str[] = "bbbb"[];

That means copy the contents of the right hand array into the 
location of the left hand array.

It copies data, that operation will never change pointers.


str = "bbbb";

would change the pointer.


More information about the Digitalmars-d-learn mailing list