From: Charles Yeomans <[EMAIL PROTECTED]>
Date: Tue, 14 Feb 2006 19:27:00 -0500
On Feb 14, 2006, at 7:08 PM, Norman Palardy wrote:
On Feb 14, 2006, at 3:41 PM, Charles Yeomans wrote:
That's not so clear. Objective-C is a strict superset of C; any
Objective-C compiler should be able to compile a C program. I'm not
sure that this is the case for C++.
I'm not sure Obj-C++ has made any inroads
In terms of "being a better paradigm", no. In terms of a solution, yes.
It does seem a little silly, since Objective-C and C++ are at opposite
ends of the object-oriented spectrum.
It's more about compatibility. Sometimes you have a library, and you
need to use it. What if you have libraries in C++, and ObjC?
ObjC++ lets you do that.
I actually find I'm a much more effective coder with C++, than Obj-C.
Mostly because I really like C++'s "allocate objects on the stack"
memory management system. It eliminates the biggest cause of leaks
and corruptions in C, and it's faster than Obj-C's silly
[autorelease] method, and it's probably even faster than C's free/
malloc!
It's also a much nicer looking language, with a cleaner syntax.
There are a lot of nice C++ stl classes, such as the hashmap, and
also the ability to template stuff is neat. Although templating does
need to be done carefully or else you end up with C++ madness.
To me, the Obj-C thing is really just useful for doing gymnastics
with Apple's GUI, and some other Cocoa utility stuff.
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>