[Issue 10002] New: 2.062 -> 2.063 call of "remove" is impure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 28 14:50:15 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10002
Summary: 2.062 -> 2.063 call of "remove" is impure
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-04-28 14:50:14 PDT ---
import std.algorithm;
class Node {
Node parent;
Node[] children;
void foo() pure {
parent.children.remove!(n => n is parent)();
}
}
2.063:
-----
main.d(8): Error: pure function 'foo' cannot call impure function 'remove'
-----
Note: Moving "parent" into "foo" will make 2.062 reject it, too.
--
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