implicit ubyte casting

Saaa empty at needmail.com
Thu Oct 1 04:05:52 PDT 2009


I think is very bug-prone, isn't it obvious iub should be -5?

ubyte ub = 5;
int iub = -ub; // iub now is 251

What is the reasoning to do it this way? 




More information about the Digitalmars-d-learn mailing list