Re: clarify: how WALK arguments can be combined

2006-09-05 Thread Mark Stosberg
Brad Bowman wrote: > Mark Stosberg wrote: >> In the Objects chapter, a WALK pseudo-class is spec'ed for using >> when calling sets of methods: >> >> http://feather.perl6.nl/syn/S12.html#Calling_sets_of_methods >> >> These are the arguments listed that can be used with WALK: >> >> :canonical

Re: multi method dispatching of optional arguments (further refined)

2006-09-05 Thread Ruud H.G. van Tol
Ph. Marek schreef: > [Haskell] > SomeThing a b > | a = 4 : b+2 > | b = 3 : a+1 > | otherwise : a*b > > In Perl5 this looks like > > sub SomeThing > { > my($a, $b)[EMAIL PROTECTED]; > > return b+2 if ($a == 4); > return a+1 if ($b == 3); > return a*b; > } Or like: sub SomeThing