[Prev][Next][Index][Thread]
Re: Multiple dispatch / multimethods??
> Each actual "generic function" would then be
> a descendant of the "GenericFunctionClass", containing nothing but a bunch
> of overloaded constructor methods.
Obviously this isn't the right idea at all - constructors being incapable of
returning anything but the newly created GenericFunction object. Suppose
instead that each GenericFunction heir class consisted of a bunch of
overloaded static methods named "do" or somesuch - it doesn't matter. I'm
just trying to understand the salient differences between
multimethods/generic functions a la Dylan and overloaded methods a la Java.
cheers,
gary
References: