[Issue 12491] [AA] Disallow non-`immutable` types as associative array keys

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 21 02:49:11 PDT 2015


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
How about something less drastic, e.g. AA's only allow const access to their
keys?

> This will cause a massive code breakage when e.g. mutable classes are used as keys.

That's almost the same as disallowing classes as keys.

--


More information about the Digitalmars-d-bugs mailing list