[Shootout-list] Re: OO (was Re: process creation & message passing)

Isaac Gouy igouy2@yahoo.com
Sat, 23 Oct 2004 19:33:25 -0700 (PDT)


-snip-
> That's a reasonably orthodox suggestion.  It's just that I have a
> hard time believing it. 

Now you really are "debating what is OO" ;-)
 
-snip-
> There is a sense, though it isn't terribly useful: everything can
> receive all selectors, they just get redirected to doesNotUnderstand:
> by the run-time system.  Sure, the default implementation in Object
> halts the program, but subclasses can handle it differently, and
> respond just fine.

Now we are playing word-games.

In Smalltalk we can *send* any message selector to any object.

If there is a method definition matching that message in the object's
method dictionary (or in the method dictionary of a superclass) then we
invoke the method; otherwise we send #doesNotUnderstand: to the
receiver object with a single argument, the message selector, and the
object *receives* the message #doesNotUnderstand: 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com