RCArray is unsafe

Zach the Mystic via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 2 07:26:50 PST 2015


On Monday, 2 March 2015 at 15:22:33 UTC, Zach the Mystic wrote:
> void fun() {
>   T[] ta = [T()].dup;
>   T* t = ta[0];

I meant: T* t = &ta[0];


More information about the Digitalmars-d mailing list