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 ?