dont understand this
collerblade via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 24 22:51:20 PDT 2016
On Sunday, 25 September 2016 at 04:25:59 UTC, Meta wrote:
> On Saturday, 24 September 2016 at 21:56:38 UTC, rikki
> cattermole wrote:
>> threadFunc contains a reference to MyClass in the form of the
>> 'this' pointer and so the GC sees this and never deallocates
>> the MyClass instance to begin with.
>
> Not to mention that destructors are not guaranteed to ever be
> called for classes and heap-allocated structs.
Do i have to do a stop() function myself?
More information about the Digitalmars-d
mailing list