Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BOOL Datatype
Message
From
12/04/2000 04:36:09
 
 
To
11/04/2000 23:55:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00357504
Message ID:
00358571
Views:
13
>Anyway, as you know, in C/C++ any non-zero value is TRUE. This also means that you can never be absolutely
>sure that TRUE has a specific int value. So, NEVER test a logical value against TRUE in C++. ALWAYS test it against
>FALSE.

I might be being pedantic here, but any non-zero value is NOT FALSE, only 1 non-zero value is TRUE (as defined with #define or enum or some otherway), as you state - never specifically check for TRUE.

Mike
Mike

"I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong." - Richard Feynman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform