Re: question about Compiler Directives
Re: question about Compiler Directives
- Subject: Re: question about Compiler Directives
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 21 Apr 2002 10:55:54 +0200
On Sunday, April 21, 2002, at 10:22 , Ted Wood wrote:
I'm just teaching myself Obj-C. At one point in the manual it states
that
"Objective-C compiler directives always start with @" and then later on
it
talks about the #include and #import directives, but they start with a
hash
(#). Is that because Obj-C is based on C, but adds object-oriented
functionality which requires additional directives?
Was #import available in classic C? If it was added as part of Obj-C,
then I
would expect it to be written @import. Please help me clear this up.
#import is not part of ANSI C.
Directives starting with # are for the precompiler, not the compiler.
The ones starting with @ are for the compiler.
andy
--
DigiTunnel Public Beta released, offering full PPTP-support for Mac OS X!
http://www.gracion.com/vpn/
_______________________________________________
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.