Graham Barr [EMAIL PROTECTED] writes:
Damian Conway [EMAIL PROTECTED] writes:
Leon Brocard writes:
=head2 $AUTOLOAD
While we're at it, it *may* be a good idea to remove the
global $AUTOLOAD variable and instead pass it as the first
parameter of the AUTOLOAD
[EMAIL PROTECTED] writes:
: =head1 IMPLEMENTATION
:
: This strikes me as being a fairly easy thing to do, but then again
: internals ain't my thing, baby.
The problem I see here isn't the internals--it's how do you translate
Perl 5 to Perl 6?
Larry
Instead of calling the right thing or actually doing the right thing,
AUTOLOAD subroutines should return a coderef which will be run as if
it were the method called. If an AUTOLOAD subroutine does not wish to
cope with a method call, it should return undef. Perl would then walk
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
The AUTOLOAD subroutine should be able to decline a request
=head1 VERSION
Maintainer: Leon Brocard [EMAIL PROTECTED]
Date: 10 Aug 2000
Version: 2
Mailing List: [EMAIL PROTECTED]
Number: 8
On Thu, Aug 10, 2000 at 04:47:33PM -, Perl6 RFC Librarian wrote:
cope with a method call, it should return undef. Perl would then walk
the OO hierarchy and find the next AUTOLOAD to call, eventually failing
with an error if no AUTOLOAD method is found which will accept the
call.
Why not
"PRL" == Perl6 RFC Librarian [EMAIL PROTECTED] writes:
PRL Instead of calling the right thing or actually doing the right thing,
PRL AUTOLOAD subroutines should return a coderef which will be run as if
PRL it were the method called. If an AUTOLOAD subroutine does not wish to
PRL cope