begin  quoting [EMAIL PROTECTED] as of Fri, Mar 21, 2008 at 10:59:40AM -0700:
> On Thu, Mar 20, 2008 at 11:23:10PM -0700, Christopher Smith wrote:
> > I find it depends a lot on the language you are using, actually. Using a
> > deep hierarchy effectively in C++ is quite difficult and painful, but in
> > Smalltalk it seems quite natural.
> 
> Hmm since I don't know Smalltalk I can't comment but now I'm curious
> why it fits so nicely with OOP.

In Smalltalk, EVERYTHING is an object.

1 + 2 * 3
9

(send the message "+" with the object "2" as an argument to the object
"1" answering a new object; then send that object the message "*" with
the object "3" as an argument...)

My only problem with Smalltalk is that the syntax is sometimes a little
unclear; I like Objective-C's use of [] to delimit messages.

-- 
I like delimiters, and get annoyed at having to infer what I meant.
Stewart Stremler

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to