Implicit enum conversions are a stupid PITA

Walter Bright newshound1 at digitalmars.com
Thu Mar 25 20:03:16 PDT 2010


bearophile wrote:
> The wchar/dchar are short names, easy to write, but for me and a person I've
> shown/taught D it doesn't result easy to remember their size in bytes. "w"
> stands for wide, "d" for double, this is easy to remember. But how wide is
> wide? That's why I have suggested to adopt more descriptive names for them.

The wchar and dchar stem from the popular WORD and DWORD sizes on the x86 
platforms. wchar_t is of course "wide character" for C, and is often used for 
UTF-16 at least on Windows platforms.

Confusingly, wchar_t on Linux is 32 bits.




More information about the Digitalmars-d mailing list