How to call destructor before free without dropping @nogc?
Bienlein
jeti789 at web.de
Thu Aug 19 10:17:07 UTC 2021
This works, vit. Thanks! I thought it wouldn't, because your code
still makes use of embrace. But it somehow worked, although I
don't understand why ... ;-).
I also added a constructor using the same approach as your
destructor and this also worked:
this(int otherNum) @nogc {
this.num = otherNum;
debug writeln("this: ", this.num);
}
@evilrat: Will try what you suggested after work today. Too busy
now.
More information about the Digitalmars-d-learn
mailing list