Patrick R. Michaud wrote: > On Sat, Sep 27, 2008 at 12:18:21AM -0700, Vasily Chekalkin wrote: >> Hello. >> >> There is implementation of Pair.pairs. +3 passed tests in "S29-hash/pairs.t" >> >> + $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)? Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/