D.gnu - phobos ctype and dchar
- Ant (10/10) Apr 18 2004 in phobos:
in phobos: for instance int isxdigit(dchar c) { return _ctype[1 + c] & (_HEX); } _ctype is: "ubyte _ctype[257]" but dchar is a unsigned 32 bit UTF-32 which can hold a value > 256 do we want it to be like this? if phobos is compiled with -debug instead of -version an ArrayBoundsError error will end the application. Ant
Apr 18 2004