Mail Archives: djgpp/1997/09/02/13:03:27
eyal DOT ben-david AT aks DOT com wrote:
> bool.h itself didn't do much. just #defined bool, true, false as int,
> 1, 0
> respectively.
Note this doesn't quite adhere to how bool is supposed to work.
According to the draft standard, numeric and pointers values can
implicitly be converted to bool, even if they are not zero or one. So
bool b = 3;
means that b should get true (1), not 3. Simple #defines won't do that.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://37.20.07n/121.53.38w
\
"War is like love; / it always finds a way."
/ Bertolt Brecht
- Raw text -