Re: quick ones on subs

2008-04-12 Thread Larry Wall
On Sat, Apr 12, 2008 at 08:00:19PM -0500, John M. Dlugosz wrote: > Larry Wall larry-at-wall.org |Perl 6| wrote: >> What gives (in the sense of breaking) is the notion that you can do >> multiple dispatch on randomly ordered arguments. That's the main >> reason we invented proto multis, so that the

Re: quick ones on subs

2008-04-12 Thread John M. Dlugosz
Larry Wall larry-at-wall.org |Perl 6| wrote: What gives (in the sense of breaking) is the notion that you can do multiple dispatch on randomly ordered arguments. That's the main reason we invented proto multis, so that the compiler can rearrange supposedly randomly ordered arguments into positio

Re: quick ones on subs

2008-04-12 Thread Larry Wall
On Sat, Apr 12, 2008 at 04:58:57AM -, John M. Dlugosz wrote: : In S06, a wrong word: : : "Alternately, optional fields may be marked by supplying a default value. " : should be parameters, not fields. : : Now here is my question: : Params are bound in declaration order, not call order, and ma

quick ones on subs

2008-04-11 Thread John M. Dlugosz
In S06, a wrong word: "Alternately, optional fields may be marked by supplying a default value. " should be parameters, not fields. Now here is my question: Params are bound in declaration order, not call order, and may refer to previous parameters. But what if a multi makes use of your intenti