[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Oh, and just to say, I'm perfectly happy to see TRUE and FALSE removed
> entirely.
I use TRUE and FALSE from time to time. Not to check in conditions, but for
things like
int some_function()
{
if (condition_is_met)
return TRUE;
else
return FALSE;
}
because in that case I think it is more readable than return 1, return 0.
This leads to the annoying situation that I have general-purpose code that
depends on Allegro because I've grown used to use TRUE and FALSE for such
cases.
I personally wouldn't mind if they were removed from Allegro - I can always
define my own for readability anyway.
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...
Evert