Article View: comp.lang.misc
Article #4901Re: C++ vs Objective-C
From: Bob Hickle
Date: Mon, 19 Oct 1987 12:15
Date: Mon, 19 Oct 1987 12:15
35 lines
2055 bytes
2055 bytes
In article <1549@pdn.UUCP>, bob@pdn.UUCP (me) writes:
> representation of the internal parse tree. Anyway, I believe (but may
> be wrong here) that the Objective-C compiler also compiles the ordinary
> C code in an Objective-C program. It just happens to produce output
> which is the same C code. That does not mean that it has not been
> compiled (ie. parsed, syntax checked, etc).
Well, I was right in that I may be wrong.
Jonathan Shopiro (AT&T Bell Labs) suggested that I try to compile the
following program with the Objective-C compiler and figure out where
the error message comes from.
-------------------------------
int f();
main()
{
int i = f;
}
-------------------------------
I tried it and determined that the Objective-C compiler has nothing bad
to say about this program. It appears to pass it through (and prepends
some header stuff on the front). The C compiler of course complains
about the assignment statement.
So my previous statement that the Objective-C compiler 'compiles'
ordinary C code in an Objective-C program was wrong. Thats what I
get for making claims without fully verifying them first.
------------------------------------------------------------------------
Bob Hickle Paradyne Corporation
{gatech,codas,ucf-cs}!usfvax2!pdn!bob Mail stop LF-207
Phone: (813) 530-2664 8550 Ulmerton Road, PO Box 2826
Largo, FL 34641
Technical Details
Message-ID:
<1579@pdn.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!homxb!mtuxo!mtune!codas!usfvax2!pdn!bobReferences:
<3405@ece-csc.UUCP> <638@its63b.ed.ac.uk> <1811@watcgl.waterloo.edu> <1549@pdn.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!homxb!mtuxo!mtune!codas!usfvax2!pdn!bob From: bob@pdn.UUCP (Bob Hickle) Newsgroups: comp.lang.misc,comp.lang.smalltalk,comp.lang.c++ Subject: Re: C++ vs Objective-C Message-ID: <1579@pdn.UUCP> Date: Mon, 19-Oct-87 08:15:09 EDT Article-I.D.: pdn.1579 Posted: Mon Oct 19 08:15:09 1987 Date-Received: Thu, 22-Oct-87 00:03:39 EDT References: <3405@ece-csc.UUCP> <638@its63b.ed.ac.uk> <1811@watcgl.waterloo.edu> <1549@pdn.UUCP> Organization: Paradyne Corporation, Largo, Florida Lines: 35 Summary: I was partly wrong ...