[Issue 10790] New: Cannot use format in pure functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 10 15:55:55 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10790
Summary: Cannot use format in pure functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: temtaime at gmail.com
--- Comment #0 from Temtaime <temtaime at gmail.com> 2013-08-10 15:55:54 PDT ---
pure int foo() {
mixin(format(`return 1;`));
}
Error: pure function 'foo' cannot call impure function 'format'
--
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