forcing "@nogc" on class destructors
Matthias Bentrup via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 28 02:36:10 PST 2015
On Wednesday, 28 January 2015 at 09:51:09 UTC, Ola Fosheim
Grøstad wrote:
> Some languages keep track of parent-child relationships, you
> can do it in the typing even. Nevertheless, children ought to
> be alive when the parent dies... If the language cannot provide
> this, then provide another mechanism such as "finalize" or just
> disallow GC allocating destructor based classes.
>
> Mish-mashing established programming concepts is Not a Good
> Idea. :)
But wouldn't enforcing strict parent-child relationships make
cyclic references illegal ?
More information about the Digitalmars-d
mailing list