[Issue 12420] [AA] Can't set associative array with array as key value using key type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 10 09:12:58 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=12420

--- Comment #8 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Martin Nowak from comment #7)
> So what's the conclusion here?

Denis argues that mutable key char[] should be allowed for the AA indexing.
But AA key should be const on indexing, and should be immutable on setting.
Therefore specifying mutable key char[] is not possible.

(I'm saying if and only if a NewExpression `new char[1]` is directly used, it
can be convertible to immutable(char[]) by the uniqueness. But it's different
from his intention.)

Therefore this issue should be closed as invalid.

--


More information about the Digitalmars-d-bugs mailing list