Bug 13953 – AA .remove pseudo-method doesn't work via alias this
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-08T11:49:48Z
Last change time
2018-11-04T04:29:23Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2015-01-08T11:49:48Z
/////// test.d ///////
struct S
{
string[string] aa;
alias aa this;
}
void main()
{
S s;
s["foo"] = "bar";
s.remove("foo");
}
//////////////////////
I did not find a "remove" method or UFCS-function in object.di/object_.d, so I guess it's still a compiler intrinsic.
Comment #1 by razvan.nitu1305 — 2018-11-02T11:32:22Z
*** Issue 14583 has been marked as a duplicate of this issue. ***
Comment #2 by razvan.nitu1305 — 2018-11-02T20:33:39Z