[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>-----Original Message-----
>From: alleg-developers-admin@xxxxxxxxxx
>[mailto:alleg-developers-admin@xxxxxxxxxx Behalf Of Evert
>Glebbeek
>Sent: 22 April 2003 16:56
>To: alleg-developers@xxxxxxxxxx
>Subject: Re: [AD] TRUE and FALSE
>
>
>> 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.
You could also use
return (condition_is_met)
AE.