[Issue 6722] Can't remove a char[] key from an AA with immutable(char)[] key type.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 23 21:16:25 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6722
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-09-23 21:15:55 PDT ---
The simplest solution is to just make it so that it's illegal to declare an AA
with a key which isn't either a value type or immutable and make it so that
_all_ functions or operators which take the key must take a type which is
implicitly convertible to the key type (including its immutability). It _would_
break a fair bit of code though, I suspect. Still, it would be a fairly simple
change to make in any code that it breaks, and it could be grandfathered in by
making it a warning first.
--
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