gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFA]: BOOL coding standards (Was: Problem with +numberWithBool: ?)


From: Pascal J . Bourguignon
Subject: Re: [RFA]: BOOL coding standards (Was: Problem with +numberWithBool: ?)
Date: Tue, 3 Feb 2004 00:26:42 +0100

Nicola Pero writes:
> 
> > I would again like to point out that if the intention was to limit BOOL 
> > to YES and NO, it would have been defined as
> >    typedef enum { YES, NO } BOOL;
> 
> Wouldn't this have been a waste a space just to just store a YES/NO ?

Moreover,  note that enum  { e1,  e2, e3}  val=42; is  perfectly legal
C. (and post-condition is: val==42).

-- 
__Pascal_Bourguignon__                     http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]