http://d.puremagic.com/issues/show_bug.cgi?id=6458
Jacob Carlborg <d...@me.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |d...@me.com --- Comment #7 from Jacob Carlborg <d...@me.com> 2011-08-08 23:44:22 PDT --- As far as I can see, D uses the smallest type necessary to fit a character literal. So all non-ascii character literals will either be wchar or dchar. Both of the following passes, as expected. static assert(is(typeof('�') == wchar)); static assert(is(typeof('a') == char)); But I don't know why the compiler allows to assign a wchar to a char array element. That doesn't seem right. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------