Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 27, 2021 [Issue 22244] Key tail immutability should allow hashmap to be impl converted from immutable to mutable | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22244 Mario Kroeplin <kroeplin.d@googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |industry CC| |kroeplin.d@googlemail.com -- |
October 05, 2022 [Issue 22244] Key tail immutability should allow hashmap to be impl converted from immutable to mutable | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22244 --- Comment #1 from FeepingCreature <default_357-line@yahoo.de> --- Simpler demonstration of the issue: ``` immutable int[string] foo; immutable(int)[string] bar = foo; ``` This should work, because if we cast it: ``` immutable int[string] foo; immutable(int)[string] bar = foo; bar["foo"] = 5; // cannot modify `immutable` expression `bar["foo"]` ``` we see that the original `foo` is still protected. So the implconv should go through. -- |
December 17, 2022 [Issue 22244] Key tail immutability should allow hashmap to be impl converted from immutable to mutable | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22244 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
December 13 [Issue 22244] Key tail immutability should allow hashmap to be impl converted from immutable to mutable | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22244 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19976 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation