On Thu, Apr 17, 2008 at 09:24:47AM +0200, TSa wrote: > HaloO, > > Larry Wall wrote: >> On Wed, Apr 16, 2008 at 04:29:23PM +0000, [EMAIL PROTECTED] wrote: >> : my Dog $spot = .new(); >> : : to >> : : my $Spot = Dog.new(); >> : : when you remove the declaration. >> >> You'd also break multiple dispatch rather badly... > > Sorry, why that? Isn't the dispatch on the dynamic type > of the value stored in $spot?
Sure, but there are still meaningful declarations involved: multi foo (Dog $d) {...} multi foo (Hog $d) {...} multi foo (Cat $d) {...} multi foo (Rat $d) {...} multi foo (Bat $d) {...} If you remove those declarations the program breaks completely. Larry