[Issue 6982] immutability isn't respected on associative array assignment
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 18 06:30:52 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6982
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2011-12-18 06:30:45 PST ---
I think there are at least two issues.
void main()
{
alias int Bla;
immutable(Bla[string]) ifiles = ["a":1, "b":2, "c":3];
immutable(Bla)[string] files = ifiles; // (1)
ifiles.remove ("a"); // (2)
}
1. Implicitly conversion from immutable to mutable AA reference.
2. Call 'remove' from immutable AA reference.
--
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