Re: Docs, questions and stuff
Re: Docs, questions and stuff
- Subject: Re: Docs, questions and stuff
- From: Chris Gehlker <email@hidden>
- Date: Sat, 25 Aug 2001 19:27:49 -0700
On 8/24/01 10:13 PM, "Jonathan Hendry" <email@hidden> wrote:
>
That's a form of delegation, not MI. Rather different. Multiple
>
Inheritance is, by definition, an issue of type. Delegation
>
doesn't imply anything about type.
Forwarding is not a form or delegation and it is about type, specifically
about being able to instantiate objects that behave as if they are of more
than one type.
>
>
What, you mean the switch statements? How do you propose to
>
use Polymorphism? The switches aren't comparing against
>
the type of something, like you'd find in most OO book
>
explanations of polymorphism. (frex, switch statements
>
discriminating between circles, squares, and triangles.)
I see I'll have to post an example. This may take a little while. In the
mean time, look at Vermont Recipes.
>
>
How is Apple's Objective-C book (not Learning Cocoa) deficient?
Apple's Objective-C book is great as a reference. It's all anyone really
needs to master ObjC if they have a background in any of C, C++ or Java.
It doesn't teach programming or introduce more than a tiny subset of Cocoa.
>
> we can do is find a book that gets the principles right in a related
>
> language.
>
>
For the OO principles, that would be Java, which at least approaches
>
the dynamic features of ObjC. C++ is too static.
C++ is too static and Java enforces strong typing without supporting it. I
think the latter is a greater flaw but I wouldn't bother to argue with
anyone who felt the other way.
Now if you want to say that someone with little programming experience
should get a good Java book, like "Thinking in Java" and just work the
exercise in ObjC I would support you all the way.
You won't though and you won't provide a comprehensible reason why this is a
bad idea. You will just make some inane comment.
--
Every society honors its live conformists and its dead troublemakers.
-Mignon McLaughlin, author