• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: question about Compiler Directives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >question about Compiler Directives (From: "Ted Wood" <email@hidden>)

  • Prev by Date: Re: Correct way to determine machine's IP address in Cocoa
  • Next by Date: Oracle and JDBC
  • Previous by thread: question about Compiler Directives
  • Next by thread: Oracle and JDBC
  • Index(es):
    • Date
    • Thread