Re: Is Double Dispatch really object-oriented?



"robb" <robb@xxxxxxx> writes:
I'm preparing a paper on this topic (I believe it isn't - that it
breaks encapsulation, for example). I thought I'd see if anyone has
any thoughts on this.

Double dispatch is just a technique to work around the
limitations of languages that don't support multimethods. Object
orientation does not require dispatching solely on a single type. The
first standardized OO language was Common Lisp and its object system,
CLOS, supports multiple dispatch directly.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc. | Large scale, mission-critical, distributed OO
| systems design and implementation.
pjm@xxxxxxx | (C++, Java, Common Lisp, Jini, middleware, SOA)
.



Relevant Pages

  • Re: whats it worth to write a short program for polynomial multiplication?
    ... Common Lisp Object System ... The idiom is called a double dispatch pattern. ... languages, when you invoke a method ("send a message" in Smalltalk, ... It is pretty handy for programming, though, and I think ...
    (sci.math.symbolic)
  • Re: Is Procedural Paradigm a basis of OO Paradigm?
    ... "single dispatch") are limited when an operation to be executed is ... "multiple dispatch"). ... Graham understands CLOS quite well. ... His book is mostly a few explanations of Common Lisp features, ...
    (comp.object)
  • Re: Is Procedural Paradigm a basis of OO Paradigm?
    ... "single dispatch") are limited when an operation to be executed is ... "multiple dispatch"). ... Graham understands CLOS quite well. ... CLOS and Common Lisp. ...
    (comp.object)
  • Re: Performance of generic functions
    ... but rather to be a thought experiment showing one reason why ... the designers may have decided NOT to support such dispatch. ... meant to demonstrate that Common Lisp DOESN'T allow these method ... is exactly what it does in the case of conflicting definitions now. ...
    (comp.lang.lisp)
  • Re: Object System
    ... I was wondering if anyone had documents or articles what gave an in- ... depth view of the object system in Python. ... Ones concerning dispatch, ...
    (comp.lang.python)