[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||dev...@mnet-mail.de --- Comment #7 from yebblies yebbl...@gmail.com 2012-01-22 12:21:31 EST --- *** Issue 7334 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||k.hara...@gmail.com --- Comment #6 from Kenji Hara k.hara...@gmail.com 2011-06-20 05:45:02 PDT --- Autogenerated destructor has same problem: import core.stdc.stdio : printf; class Foo { invariant() { printf(Foo.invariant\n); } } void main() { Foo foo = new Foo(); printf(lifetime of foo\n); delete foo; } Should print: Foo.invariant lifetime of foo Foo.invariant But current output is: lifetime of foo -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #5 from yebblies yebbl...@gmail.com 2011-06-17 07:53:50 PDT --- What should happen in these cases? class A { shared invariant {} } class A { immutable invariant {} } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|bugzi...@digitalmars.com --- Comment #3 from Andrei Alexandrescu and...@metalanguage.com 2010-11-26 11:39:12 PST --- The example needs parens: class Foo { // this() {} invariant { assert (false); } } void main() { Foo foo = new Foo(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 --- Comment #4 from Andrei Alexandrescu and...@metalanguage.com 2010-11-26 11:39:39 PST --- Forgot to add the actual parens :o). class Foo { // this() {} invariant() { assert (false); } } void main() { Foo foo = new Foo(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 519] Invariant not called from autogenerated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=519 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #2 from bearophile_h...@eml.cc 2010-06-17 13:08:26 PDT --- *** Issue 4331 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---