automatic int to short conversion - the HELL?

bearophile bearophileHUGS at lycos.com
Fri Sep 19 16:32:38 PDT 2008


Don:

> But the solution is NOT to leave the language as-is, only disallowing 
> signed-unsigned comparison. That's a cure that's as bad as the disease.

May I ask you why?


> One of the biggest stupidities from C is that 0 is an int. Once you've 
> done that, you HAVE to have implicit conversions. And once you have 
> implicit conversions, you have to allow signed-unsigned comparision.

I don't understand (I know no languages where 0 isn't an int), can you explain a bit better?

Bye and thank you,
bearophile


More information about the Digitalmars-d-learn mailing list