1 matches bool, 2 matches long

Namespace rswhite4 at googlemail.com
Sat Apr 27 15:21:11 PDT 2013


> If bools are 1 bit ints, then why do we have 'true' and 'false' 
> as keywords? Those keywords only serve to confuse the 
> programmer into thinking that the bool type is actually a real 
> boolean type.

C++ has also true and false and they are converted to integers by 
the compiler.


More information about the Digitalmars-d mailing list