[EMAIL PROTECTED] (Larry Wall) writes:

> :         my %transtable;
> :         for %intable.kv -> $k, $v {
> :             # $k is stringified by the => operator.
>
> Interesting comment.  I wonder if it's true.
That was my attempt to explain the observations I did. Clearly I put
the blame the wrong place.

> :             my @ks = expand($k);
> :             my @vs = $v.isa(Str) ?? expand($v) !! expand_arrayref($v);
>
> Nit: that probably wants to be an MMD dispatch eventually so we can handle
> things that aren't quite Str or Array.

Right, I'm going to fix that. 

>
> :             [EMAIL PROTECTED] = @vs;
> :         }
> :     
> :         [~] map { %transtable{$_} // $_ } $self.split('');
> :     }

[...]

> Also, if we go with the syntactic definition of named args we've
> been discussing lately on p6l, we'll need to put an extra set of
> parens around the pair list, or prefix with "<==" to force it into
> the list zone, or pass inside [...].  (And for syntactic named args,
> a => probably *should* be enforcing string context on the key.)

Ok, r7622 changed something about how the method gets called and that
broke most of the examples in S05. I'll probally turn my attention
somewhere else until I have a more stable understanding of what
happens.

-- 
 Peter Makholm     |      I laugh in the face of danger. Then I hide until
 [EMAIL PROTECTED] |                                          it goes away
 http://hacking.dk |                                             -- Xander

Reply via email to