[Issue 4282] Problem in AAs with fixed size arrays as keys

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 24 13:27:39 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4282


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kennytm at gmail.com
         Resolution|                            |FIXED


--- Comment #1 from kennytm at gmail.com 2011-06-24 13:22:46 PDT ---
(In reply to comment #0)
> (Similar traps are very bad in a language. In this situation I suggest to
> produce a compile-time error, or better to convert the slice into the correct 2
> char array to be used as key).

DMD now errors with 

    Error: cannot implicitly convert expression (txt[i..i + 2u]) of type char[]
to char[2u]

-- 
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