[Issue 23186] wchar/dchar do not have their endianess defined

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 15 10:12:41 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23186

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl
                 OS|Windows                     |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
This is relevant when e.g. converting a `ubyte[]` to a `wchar[]` or `dchar[]`,
but I don't think the language ever does that itself. A `wchar` and `dchar` are
defined as "unsigned 16/32 bit" basic types, just like `ushort` or `uint`, and
endianness in general is already specified to be target defined here:

https://dlang.org/spec/abi.html#endianness

Would it suffice to add char types to the table below it?

https://dlang.org/spec/abi.html#basic_types

--


More information about the Digitalmars-d-bugs mailing list