Re: ObjC
Re: ObjC
- Subject: Re: ObjC
- From: Brent Gulanowski <email@hidden>
- Date: Sun, 18 Jul 2004 14:20:33 -0400
On Sun, 18 Jul 2004 16:54:03 +0100, Theodore H. Smith
<email@hidden> wrote:
>
I've heard that ObjC is just C, with a (special) preprocessor and a
>
nice runtime library. Is this true? From my experience of using ObjC,
>
it could theoretically be true. If so, I think it makes ObjC quite a
>
nice way to do proper object oriented coding, because it would be
>
inherantly C (or C++) compatible. These are just beginner questions and
>
I am a beginner to ObjC :o)
Sure, but in the extreme case, once it's compiled, it's all just data
and instructions. It depends on how fine-grained you want the
"compatibility" to be.
The presence of a preprocessor (contrasted to semantic support for the
constructs in the parser) is pretty much immaterial -- you're better
off to just ask which languages are supported by the compiler, and to
what degree. As ObjC is a superset of C, all of C is inherently
supported. C++ support in ObjC code requires a compiler that can
translate ObjC++, a distinct language which just happens to be based
on two other languages, both of which share a common subset (C).
--
Brent Gulanowski
http://www.boredastronaut.com
_______________________________________________
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: | |
| >ObjC (From: "Theodore H. Smith" <email@hidden>) |