Python syntax in Lisp and Scheme

Joe Marshall jrm at ccs.neu.edu
Thu Oct 9 14:54:51 EDT 2003


my-first-name.my-last-name at jpl.nasa.gov (Erann Gat) writes:

> In article <bm32a3$iti$1 at bob.news.rcn.net>, "Vis Mike"
> <visionary25 at _nospam_hotmail.com> wrote:
>
>> 
>> Ahh, but overloading only works at compile time:
>
> That's irrelevant.  When it happens doesn't change the fact that this
> proves it (multiple dispatch with non-congruent arglists) is possible. 
> Nothing prevents you from using the same algorithm at run time.
>

In fact, on a project I'm working on I have to handle overloaded
functions.  I used the MOP to adjust how method combination worked
and now the generic functions first perform an arity-based dispatch.




More information about the Python-list mailing list