Re: adding Foundation framework to a Carbon application
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