Re: Objective-C vs. Java
Re: Objective-C vs. Java
- Subject: Re: Objective-C vs. Java
- From: Art Isbell <email@hidden>
- Date: Wed, 25 Jul 2001 14:11:44 -1000
On Wednesday, July 25, 2001, at 01:41 PM, Lloyd Sargent wrote:
Perhaps I am missing what ObjC++ is supposed to give us... two
different ways of doing objects?
Basically, yes. You can have C++ source files (Model objects),
Objective-C source files (Model, View, and Controller objects), and
files containing mixed C++ and Objective-C (Controller objects in which
C++ objects can be messaged from Objective-C and vice-versa). The
compiler knows which files are which by their file extensions.
Is C++ faster than ObjC?
Generally, yes. The dynamic nature of Objective-C, its source of
power, is slower than the static nature of C++ in which everything is
set up at compile time. One of the design goals of C++ was that it
execute no more slowly than C which severely restricted its
object-oriented nature and made its syntax a nightmare.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836