1 matches bool, 2 matches long

Minas Mina minas_mina1990 at hotmail.co.uk
Sat Apr 27 14:49:59 PDT 2013


VRP is only useful when doing this:

short s = 1000; // 1000 is int, but it's safe to put it into a 
short

Integers are not booleans. I agree with the others that bool 
being treated as an int is an implementation detail derived from 
C.

Or are you just bored for doing:
if( x == 0 )

instead of
if( x )

?


More information about the Digitalmars-d mailing list