August 10, 2013 [Issue 10790] New: Cannot use format in pure functions | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: temtaime@gmail.com --- Comment #0 from Temtaime <temtaime@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: ------- |
August 10, 2013 [Issue 10790] Cannot use format in pure functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | http://d.puremagic.com/issues/show_bug.cgi?id=10790 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |INVALID --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-08-10 15:57:23 PDT --- Already fixed in git-head with another bug report. Someone should mark this as a dupe of another report, I can't remember which one it is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation