>> There was an entry over at the Daily WTF in which someone posted code,
>> written by another person, containing this:
>>
>> #define TRUE 0
>> #define FALSE 1
>>
>> I swear that I am not making this up.
>
> Probably Unix convention?
Ah yes - return code 0 = OK, any other code = failure.
What have we learned here? That using integers to represent Booleans is
a Very Bad Thing. :-P
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|