While everyone is saying what they want in Python :)

Jay O'Connor joconnor at cybermesa.com
Sun Feb 4 14:59:03 EST 2001


Daniel Klein wrote:

> That's cos Smalltalk returns 'self' by default when a there is no explicit
> return value. 

That is true, but also not how cascading works in Smalltalk.  When using
a cascaded message send, Smalltalk will send all messages to the single
receivng object regardless of the return value of the message.  The
classic example is #add:  which returns the new object being added; but
which is a very popular use of cascading.

-- 
Jay O'Connor
joconnor at cybermesa.com
http://www.cybermesa.com/~joconnor

"God himself plays the bass strings first when He tunes the soul"



More information about the Python-list mailing list