
Kim Barrett wrote:
At 11:58 PM -0400 8/22/09, Edward Diener wrote:
This does not explain the practical purpose of multimethods. I know what virtual functions are, of course. What in multimethods improves on the polymorphic capabilities of virtual functions that make them a practical choice for use over normal polymorphism.
The previously referenced paper (http://research.att.com/~bs/multimethods.pdf) contains rationale discussion, including several well chosen examples where multiple dispatch can be beneficial.
a preprocessor for C++ implementing automatically (and safely) double dispatch is http://doublecpp.sourceforge.net/ -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net