[Issue 7988] New: [CTFE] CTFE return values should be allowed in compile-time expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 26 01:18:12 PDT 2012
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: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list