[Issue 6458] Multibyte char literals shouldn't implicitly convert to char

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 8 23:19:15 PDT 2011


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



--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-08 23:19:15 PDT ---
It shouldn't even compile, because the types don't match. Even with range
propagation, the best that you'll do with 'ä' is fit it in a wchar, so it won't
fit in a char, and so you _can't_ assign it to each element of s[0 .. 3] like
that. s[0 .. 3] = "ä"[] should work, but s[0 .. 3] = 'ä' definitely shouldn't.

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