http://d.puremagic.com/issues/show_bug.cgi?id=7988
Summary: [CTFE] CTFE return values should be allowed in compile-time expressions Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don <clugd...@yahoo.com.au> 2012-04-26 01:19:17 PDT --- Things like this should work. It currently doesn't because CTFE ends when the function finishes. class X7988 { int y; this() { y = 2; }} static assert( (new X7988).y == 2); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------