[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFA]: BOOL coding standards (Was: Problem with+numberWithBool: ?)
From: |
Philippe C . D . Robert |
Subject: |
Re: [RFA]: BOOL coding standards (Was: Problem with+numberWithBool: ?) |
Date: |
Mon, 2 Feb 2004 22:03:33 +0100 |
On Feb 2, 2004, at 2:01 AM, Helge Hess wrote:
I think everybody understood your point on that, but no one shares it
;-) There is no Obj-C standard and the GCC implementation is *the*
reference implementation we are talking about.
Uhm, this is like saying NeXT's/Apple's ObjC runtime is the reference
wrt ObjC runtimes, just because there is no spec...
I hope it's clear that I think a BOOL must only take YES or NO values
and
that anything else is 'dubious'.
Yes, I think it is clear what you think. But show me a person which
shares your opinion ;-)
Well, me actually... and I guess I am not the only one.
I am sure the BOOL "type" has been introduced because there was a need
for a true boolean type, unfortunately there was no such type in C back
then, but if a real boolean had been available in the late 80ies they
would have used it instead, I am pretty sure.
Besides nobody really could give good reasons yet for the existence of
BOOLs which take anything else than YES and NO. If you are able to do
so then please do, I am curious!
-Phil
--
Philippe C.D. Robert
http://www.nice.ch/~phip/
Re: [RFA]: BOOL coding standards (Was: Problem with+numberWithBool:?), Alexander Malmberg, 2004/02/02