OT: Language Analysis
OT: Language Analysis
- Subject: OT: Language Analysis
- From: "Ricky A. Sharp" <email@hidden>
- Date: Wed, 06 Jun 2001 17:34:27 -0500
All,
I'm still learning Obj-C and must say that I really enjoy the language. I
have about 8 years now of C++ experience and a couple years in Java. I'm
wondering if anyone knows of (or has done) a very simplistic analysis
between the features of these languages.
e.g. when writing a new app in C++, I'll know when to apply say
mixin-classes (i.e. multi-interitence), when to use this, when to use that,
etc.
When learning about protocols, it strikes me that a formal protocol is like
a mixin class in C++ that only contains pure virtual methods (i.e. classes
that mix in your class or "adopts the protocol" must implement those
methods). Whereas an informal protocol is like a mixin with just virtual
methods.
I'm not looking for a super-detailed analysis like sizes of int, scope
rules, etc...I'm after more of a high-level feature analysis. My goal is to
be able to look at a Cocoa example and truly understand why it was organized
in the way it is. I thought it may be helpful to map some of the Obj-C
concepts back to similar (when possible) concepts of C++/Java.
TIA,
------------------------------------------------------------
Ricky A. Sharp Instant Interactive(tm)
Founder & President
email@hidden
http://www.instantinteractive.com
------------------------------------------------------------