[Issue 519] Invariant not called from autogenerated class/struct constructor/destructor

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 18 10:20:48 PST 2014


https://issues.dlang.org/show_bug.cgi?id=519

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #14 from Martin Nowak <code at dawg.eu> ---
Rainer raised an important question for running invariant before class
destruction. Because GC finalization order is undetermined an invariant that
would check whether some classes's field points to a valid instance could fail
because the pointed-to class could already have been finalized.


http://forum.dlang.org/post/m4eu6v$trq$1@digitalmars.com

--


More information about the Digitalmars-d-bugs mailing list