>>>>> "Peter" == Peter Seibel <[EMAIL PROTECTED]> writes:


    > Hi, I'm new to this list and haven't had a chance to grovel
    > through the old archives yet so please forgive me for jumping in
    > in the middle of things.

    > Anyway, what about languages that don't attach methods to
    > particular classes--languages that support generic functions and
    > multimethods (i.e. a method is dispatched at runtime based on
    > the type of more than one of its arguments.) I ask because I
    > started looking at Parrot (and joined this list) because I was
    > interested in the idea of writing a Common Lisp that runs on
    > Parrot. I had looked at the CLR as a possible target and found
    > it too tied to the single-dispatch model of methods "belonging"
    > to particular classes. I was hoping things would be more
    > flexible here. Was I hoping for too much?

I'd expect defmethod/defgeneric to generate instances of a
"standard-generic-function" and "standard-method" class, which holds
the code and specializations, and whose methods implement CL-style
dispatch; this would make for a convenient MOP, as well as providing
some chance for interfacing with modules in other languages. 

Allen

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to