Re: Newbie reference question
Re: Newbie reference question
- Subject: Re: Newbie reference question
- From: email@hidden
- Date: Wed, 15 May 2002 10:34:45 -0700
Joe Feld wrote:
|It's not always intuitive if I'm looking for a
|reference to something common to all C or just specific to Obj-C.
Here's the general rule of thumb: if it starts with an "@", or is enclosed in square brackets ("[" and "]", array subscripts excluded), it's Objective-C. Otherwise, it's C. (The most common exceptions are the SEL and id keywords, which look like C but are actually Objective-C.)
Just to complicate matters, it's quite possible to glue the Objective-C extensions to C onto C++, to create Objective-C++. Care needs to be taken in mixing the two kinds of objects, but they do mix. The same rule of thumb applies, just replacing "C" with "C++". (If you want to experiment with Objective-C++, the secret is to change the file extension from ".m" to ".mm".)
Glen Fisher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.