--- Comment #4 from Kenji Hara <> 2012-01-28 11:20:13 PST ---
(In reply to comment #3)
> C does not specify the size of wchar_t. On Windows, wchar_t is 2 bytes, but on
> Linux it is 4.

Yes, I know, and he knows it.

The original question is "Does the representation of wchar and dchar type value
depend on system-endianness?".

The page says
"The endianness (byte order) of the layout of the data will conform to the
endianness of the target machine.", but following "Basic Types" table does not
mention about char, wchar, and dchar types.

So I had said to him in Twitter, "D's wchar type is same as C's wchar_t in
32bit system, and wchar_t depends on system endianness. So D's wchar is also
system-endianness", but he had not been able to believe that.

At least, I think the lack of descriptions about character types in abi page
should be fixed, as Comment#2.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to