Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
> This and other RFCs are available on the web at
> http://dev.perl.org/rfc/
>
> =head1 TITLE
>
> Objects: C<use invocant> pragma
>
> =head1 VERSION
>
> Maintainer: Damian Conway <[EMAIL PROTECTED]>
> Date: 14 September 2000
> Mailing List: [EMAIL PROTECTED]
> Number: 223
> Version: 1
> Status: Developing
>
> =head1 ABSTRACT
>
> This RFC proposes that, as in Perl 5, the invocant of a method should be
> normally available to the method as $_[0], but that it can be
> automaticaly stripped from @_ and accessed via either a subroutine
> or a variable, using the C<use invocant> pragma.
Dang, this means that the obfuscatorily appealing:
sub factorial {
my $arg = shift;
sub {
return $_[0] unless $_[1];
$_[0] *= $_[1]--;
goto &$SELF;
}->(1,$arg);
}
Goes out of the window. This may not be a bad thing.
--
Piers