Python syntax in Lisp and Scheme

Rayiner Hashem gtg990h at mail.gatech.edu
Fri Oct 10 06:34:58 EDT 2003


> Ahh, but overloading only works at compile time:
> 
> void foo( SomeBaseObject* object );
> void foo( SomeDerivedObject* object );
> 
> doesn't work if you're using a base class pointer for all your derived
> classes.
I think that the point was that the overload resolution rules can handle the
situation. Nothing in these rules prevents them from being applied to a
dynamically dispatched case.




More information about the Python-list mailing list