Re: Help porting from codewarrior?
Re: Help porting from codewarrior?
- Subject: Re: Help porting from codewarrior?
- From: Marshall Clow <email@hidden>
- Date: Wed, 21 Sep 2005 13:41:28 -0700
At 10:34 PM +0200 9/21/05, Markus Hitter wrote:
Am 21.09.2005 um 20:20 schrieb Bob Sabiston:
error: 'Boolean' does not name a type
In earlier days, a
#define Boolean char
would be a way conformant to the C standard.
C++ since it's birth and C since ANSI C99 has the "bool" type. In
case of C, you need to
#include <stdbool.h>
which is one of the conflicts between ANSI C and ANSI C++.
There are yet more forms: Carbon, X11 and a few others use
"Boolean", possibly because their inventors didn't have a look at
the then upcoming C++ standard. Objective-C has the "BOOL" type as
part of it's language definition - Obj-C is at least as old as C++.
(Merging language features seems to be a big no-no)
It's true. When the C interfaces to the Mac Toolbox were being
developed (in 1984 and 1985) the people doing the work were clearly
not tracking the C99 Working Group. Shame on them. Shame!
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden