http://d.puremagic.com/issues/show_bug.cgi?id=4282
kenn...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kenn...@gmail.com Resolution| |FIXED --- Comment #1 from kenn...@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: -------