• 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: adding Foundation framework to a Carbon application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding Foundation framework to a Carbon application


  • Subject: Re: adding Foundation framework to a Carbon application
  • From: John Stiles <email@hidden>
  • Date: Mon, 21 Nov 2005 13:36:59 -0800

On Nov 21, 2005, at 12:37 PM, Sean McBride wrote:

On 2005-11-19 17:40, Daniel Jalkut said:

The real problem here is that ObjectiveC uses custom compiler
features and custom file extension for source files, yet shares a
".h" for header files with C.

If Objective-C based header files had a custom header file extension,
the compiler could quickly warn you when you included an Objective-C
file from a straight-C source file, instead of waiting until you
encounter some cryptic language-specific error.

Or the compiler itself could be smarter. If it's compiling in C mode
and comes across some Obj-C syntax, it could give a message like "you
told me to compile C, and I've come across some Obj-C". It would no
doubt take work on the compiler's part, but would be a better UI for the user.

It seems a little wrong to force the C compiler to understand Objective-C semantics, just in order to present a more clear error message. Should it do the same for C++? C#? Where is the line drawn?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >adding Foundation framework to a Carbon application (From: Donald Hall <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Daniel Jalkut <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Chris Parker <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Ed Voas <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Chris Parker <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Ed Voas <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Markus Hitter <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: Daniel Jalkut <email@hidden>)
 >Re: adding Foundation framework to a Carbon application (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: CoreData: NSManagedContext not updating NSArrayController in UI
  • Next by Date: Re: Obtaining an array of the names of the attributes and relations of a class
  • Previous by thread: Re: adding Foundation framework to a Carbon application
  • Next by thread: Modal dialog weirdness
  • Index(es):
    • Date
    • Thread