[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Tuesday 22 April 2003 3:55 pm, Evert Glebbeek wrote:
> Oh, just for reference, I got used to FALSE=0, TRUE=!FALSE too when I was
> using BASIC, so to me TRUE=-1 doesn't seem so strange...
BASIC doesn't make the distinction between ~ (invert all bits) and ! (output 1
if input 0, output 0 otherwise). BASIC just has a NOT keyword that inverts
all bits. So -1 is the natural choice in this context.
But personally I prefer C's way of doing things :)
Ben