What is a dchar ?

Cecil Ward cecil at cecilward.com
Tue Jul 25 23:54:46 UTC 2023


Is a dchar a signed 32-bit number? LDC seems to think so, as I 
spotted it in Compiler Explorer sign-extending from 32 to 64-bits 
for some very odd reason. Do we really want it to be signed? 
(Please answer ‘no’, as this could lead to some bugs, although 
the range of legitimate Unicode code points is quite limited, 
being only, what, 17 * 65536 roughly.)


More information about the Digitalmars-d-learn mailing list