RE: bool, BOOL
RE: bool, BOOL
- Subject: RE: bool, BOOL
- From: "Healy, Matt" <email@hidden>
- Date: Tue, 29 May 2007 12:18:20 -0400
David Harper asked:
> Is there any reason lowercase bool is not considered a keyword in .m
> files, while it is in headers? Uppercase BOOL is colored in both types
> of files, but I prefer using lower case.
At a guess, this is because in the case of the header file, it's being
interpreted using the C language rule set, whereas in the .m file it's being
interpreted using the Objective-C rule set. (Remember, the editor is just
using the file extension to pick the filter to be used in syntax coloring.)
Under the C99 language specification updates, a "_Bool" type was added to
the C language, which is used to define a "bool" type in <stdbool.h>.
However, I'm unsure if this has been made an official part of the
Objective-C language yet, and thus it's entirely possible that the syntax
coloring for that language doesn't include this type.
I'm not sitting in front of my Mac right now, or I'd check this out, but
that seems like the most likely cause.
-mjh
--
Matthew J. Healy
Principal Engineer
Vanteon Corporation
255 Woodcliff Drive, Suite 200
Fairport, NY 14450-4226
Office: (585) 419-9560
Fax: (585) 248-0537
www.vanteon.com - Embedded for Your Future
_______________________________________________
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