__rcall__???

William Tanksley wtanksle at hawking.armored.net
Wed Dec 22 14:56:41 EST 1999


On Wed, 22 Dec 1999 12:34:05 -0600, David C. Ullrich wrote:
>Tres Seaver wrote:

>> [...]

>> * double dispatch
>>     selecting the method to be called based on the classes of both objects
>>         involved (as distinct from single dispatch, like a virtual function in
>>         C++,

>> * multimethods (Lisp and derivatives)
>>     all arguments contribute to the selection algorithm.

>> * Visitor
>>     a design pattern [1] used to implement double dispatch in languages
>>         which don't have multimethods as a native construct.

>> [1] "design pattern" is the meme to use when searching: try hillside.net for
>>     starters

>    Thanks. (Searching on "LISP + Visitor" turned up fascinating stuff about
>the Knights of the Lambda Calculus, Chaitin's Omega, etc, but I not what
>I was looking for.)

That's right -- Lisp doesn't need the Visitor pattern, because it has full
multiple dispatch.  You can find info about Visitors for almost any other
language, but not Lisp.

>DU

-- 
-William "Billy" Tanksley, in hoc signo hack



More information about the Python-list mailing list