forcing "@nogc" on class destructors

via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 22 09:03:55 PST 2015


On Thursday, 22 January 2015 at 16:53:10 UTC, Steven 
Schveighoffer wrote:
> Disallowing compilation of the dtor does not fix the race 
> condition. We are no closer to race-free code here.
>
> What you are basically saying is, race conditions are OK, as 
> long as they don't allocate memory in dtors.

Most large programs will be deployed with some minor bugs.

What I basically say is that a program that would run fine with 
manual memory management and some occasional leaks, will crash if 
you use alloc from the gc heap instead of the plain heap.


More information about the Digitalmars-d mailing list