http://d.puremagic.com/issues/show_bug.cgi?id=519


Denis Shelomovskij <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|Invariant not called from   |Invariant not called from
                   |autogenerated constructor   |autogenerated class/struct
                   |                            |constructor/destructor


--- Comment #8 from Denis Shelomovskij <[email protected]> 2012-10-30 
16:05:58 MSK ---
Structs have the same problem:
---
import std.stdio;

struct S
{
    invariant() { writeln("invariant"); } // never called
    // ~this() { writeln("~this"); } // uncomment to call invariant
}

void main()
{
    auto s = S();
}
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to