View Single Post
Old Oct 30th, 2005, 5:18 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
damn... that means all my programs are written wrong I always use 1 for success, 0 for failure.. seems most logical in my eyes, since 1 is often equal to true, and 0 to false.
See what I mean? Regarding true/false, consider the following:

MY PROGRAM SCREWED UP.

One might reason that there is often one way for something to succeed and lebenty-jillion ways for it to fail. There's only one "zero". How are YOU going to allocate your indicative numbers?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote