develooper Front page | perl.perl6.language | Postings from August 2001

Re: Expunge implicit @_ passing

Thread Previous | Thread Next
From:
Damian Conway
Date:
August 12, 2001 15:09
Subject:
Re: Expunge implicit @_ passing
Message ID:
200108122208.IAA27661@indy05.csse.monash.edu.au
   > When foo() is called as &foo with no parens and no arguments, it
   > inherits @_ from it's caller.
   > I can't think of any reason why this feature is useful anymore, and it
   > can be a really confusing behavior, so what say we kill it in Perl 6?

It's alreday scheduled for termination.

In Perl 6, the expression C<&foo> returns a reference to the C<foo> subroutine.

Damian

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About