On Tue, Jun 29, 2010 at 04:02:19PM -0700, Jonathan Leto wrote:
> 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.

The correct response is Any().  See S09:1285.  pmichaud is planning to
fix autovivification for Rakudo *.

-sorear

Attachment: signature.asc
Description: Digital signature

Reply via email to