M
Martijn Lievaart
Martijn> Better written as:
Martijn> $self->kick();
Martijn> although if kick() does not exist, the former fails at compile
time while Martijn> the latter fails at run time.
And if kick doesn't know what to do with an object of the type that
$self is, it'll have to check that itself unless it's a method call.
OK, so which one is preferable:
shoot($self, $foot);
or
$self->$shoot($foot);
Or should we introduce some form of double dispatch here, so
shoot($self, $foot);
depends both on the type of $self as the type of $foot?.
M4