Howdy,

I have a question about  @_[0]  for a sub that defines no arguments.
In the current Rakudo I get:

$ parrot ./perl6.pbc
> my $r = sub { say @_[0].WHAT }; $r.()
Proxy()

whereas Pugs calls it a "Scalar". Which is correct? I have looked
through S06, but I can't find anything related to this. This behavior
seems slightly unintuitive to me, I would expect something like Nil.

For reference, I ran into this hacking on PL/Perl 6, which allows
writing stored procedures for PostgreSQL in Rakudo Perl 6.

Duke

-- 
Jonathan "Duke" Leto
jonat...@leto.net
http://leto.net

Reply via email to