[Gd-hackers] gtk interface: shorten identifiers, ... ?
Bruce Hoult
bruce at hoult.org
Tue Nov 28 21:54:33 CET 2006
On 11/29/06, Danny Milosavljevic <danny_milo at yahoo.com> wrote:
> Does that mean it doesn't support "overloading" properly?
> I mean its a nice idea to have classes not introduce their own namespace
> (since that can be found out by the argument types), but all the methods of
> different objects which coincidencially had the same name would need to
> have the same number of arguments as well? That's pretty improbable :)
They can't "coincidentally have the same name". The name of a method
is actually the name of the Generic Function that the method is added
to. All methods in a Generic Function have to be congruent.
So Dylan doesn't have casual overloading of unrelated functions.
If you need to use several classes together that were developed
independently and have coincidentally the same function names then
you'd rename one or both of them on import.
More information about the hackers
mailing list