Struct dtor on ref variable

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 1 09:21:16 PDT 2016


On Monday, 1 August 2016 at 16:18:32 UTC, Patric wrote:

> But still.
> If it was the case of "+=" wasn´t wrong to call the dtor since 
> is a ref var?

No. It was working as expected. You never implemented opAssign, 
so default assignment was being used. There was no ref variable.


More information about the Digitalmars-d-learn mailing list