Aaron Sherman:
# Ok, so without knowing what the XS-replacement will look like 
# and without knowing what we're doing with 
# filehandle-functions (is tell() staying or does it get 
# removed in favor of $fh.tell()) and a whole lot of other 

I think that sort of thing is going.  IIRC, the only built-in I/O thingy
that's staying is open().

# stuff it's impossible to translate all of the Perl 5 
# functions to Perl 6. However, what I've done is take a quick 
# stab at creating at least function signatures for everything 
# that was in perlfunc and implemented some of the functions 
# that do not require any external junk (e.g. reverse).

The one thing I notice all over the place is:

        sub abs($num is int){ return $num>=0 ?? $num :: -$num }
               ^^^^^^^^^^^^^
I believe that should be (int $num).

                push @newlist, $_ if &code(); # XXX - How does code get
$_?

It should be C<code($_)>.  A closure that receives one argument and
doesn't have a signature gets that argument put into $_.

Overall, things look roughly correct.  Well done.

--Brent Dax <[EMAIL PROTECTED]>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

"In other words, it's the 'Blow up this Entire Planet and Possibly One
or Two Others We Noticed on our Way Out Here' operator."
    --Damian Conway

Reply via email to