Checked!({short, ushort, byte, char}, Throw): compilation fails

Meta jared771 at gmail.com
Fri Apr 17 04:29:06 UTC 2020


Unlike C/C++, char is not a numeric type in D; It's a UTF-8 code 
point:

import std.traits;

void main()
{
     pragma(msg, isNumeric!char); //Prints false
}


More information about the Digitalmars-d-learn mailing list