Struct dtor on ref variable

Patric via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 1 09:24:56 PDT 2016


On Monday, 1 August 2016 at 16:21:16 UTC, Mike Parker wrote:
> 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.

Iep, I realized this by now. Thanks anyway :)


More information about the Digitalmars-d-learn mailing list