[Issue 2954] [tdpl] Allow to set associative array key value only using expression AA key type is constructable from
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 6 19:20:42 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=2954
Stanislav Blinov <stanislav.blinov at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stanislav.blinov at gmail.com
--- Comment #13 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
Bump.
A user in Learn recently ran into this (even though the thread itself is about
a different question):
https://forum.dlang.org/thread/mailman.4778.1541282050.29801.digitalmars-d-learn@puremagic.com
The AA's indexing operations should:
1) If the key type is a pointer or a class instance, only accept pointers to
immutable and immutable references respectively.
2) If the key type is an array, accept non-immutable arrays, but .idup them if
the operation results in insertion (i.e. [], require(), update())
Side observation: what is this 'blocker' bug blocking, exactly? It's
approaching it's 10th birthday...
--
More information about the Digitalmars-d-bugs
mailing list