[Issue 6958] New: [CTFE] closures are not yet supported in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 16 05:34:44 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6958
Summary: [CTFE] closures are not yet supported in CTFE
Product: D
Version: D2
Platform: Other
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> 2011-11-16 05:33:59 PST ---
Test case:
-----------------------
int delegate(int a) bar6958(int x)
{
int y = x;
int delegate (int a) xxx = (int a){ return a + y; };
return xxx;
}
int foo6958()
{
auto z = bar6958(4);
assert(z(3) == 7);
return 3;
}
static assert(foo6958());
--
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