__dtor vs __xdtor

bitwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 11 11:24:38 PDT 2017


On Friday, 11 August 2017 at 17:20:18 UTC, HyperParrow wrote:
> [...]
> I made a mistake but it's not about i, which is a global.
> I meant "other.__dtor." just before the last assert.
> This doesn't change the results.

hmm...indeed ;)

On Friday, 11 August 2017 at 17:24:17 UTC, HyperParrow wrote:
> [...]
>
>> is it possible to have only __dtor without also having 
>> __xdtor? Like, if I want to call a struct's destructor, do I 
>> have to check for both, or can I just always check for, and 
>> call __xdtor?
>
> Always use __xdtor unless you know there's no other destructor 
> to call.

Ok cool, thanks.


More information about the Digitalmars-d-learn mailing list