Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 ... Xref: mnetor comp.lang.misc:759 comp.lang.smalltalk:365 comp.lang.c++:522 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