POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
10 Oct 2024 09:31:19 EDT (-0400)
  Re: Random C craziness  
From: Orchid XP v8
Date: 28 Jul 2008 16:35:08
Message: <488e2d7c@news.povray.org>
>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.