Jacob Carlborg <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #7 from Jacob Carlborg <> 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:
------- You are receiving this mail because: -------

Reply via email to