Hi,

Could anyone please tell me why the properties of min/max of a char returns a "char type" and not a value as an int?

I just got this while playing around:

void main(){
    import std.stdio;
    writeln(char.max); // "nothing"
    writeln(typeid(char.max)); // "char"
    writeln(cast(int)char.max); // 255
}

Thanks in advance,

Matheus.

Reply via email to