On Mon, Sep 29, 2008 at 05:32:23PM +0200, Moritz Lenz wrote:
> Patrick R. Michaud wrote:
> > On Sat, Sep 27, 2008 at 12:18:21AM -0700, Vasily Chekalkin wrote:
> >> +    $P0 = get_hll_namespace ['Perl6Pair']
> >> +    '!EXPORT'('pairs', $P0)
> > 
> > It's probably wrong to export 'pairs' here -- the exported pairs
> > function should be the one that is on 'Any'.  Either that or it 
> > needs to be a :multi so that we can distinguish between them.
> 
> What should Any.pairs do? Assume it's a one-item list and return (0 =>
> self)?

Yes, since that's what .elems, .values, .kv, .grep, .map, etc. 
are basically doing.

Pm

Reply via email to