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

Re: Expunge implicit @_ passing

Thread Previous | Thread Next
Ken Fox
August 27, 2001 07:40
Re: Expunge implicit @_ passing
Message ID:
Michael G Schwern wrote:
> 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?

I've always thought is was pretty useful for implementing generic
redirectors. I wrote a frame system that allows instances to over-ride
class methods. The basic idea is

  sub foo {
    my $method = $_[0]{"_foo"} || $_[0]->can("_foo");

The only thing I'd like to change is to make &foo a tail call instead
of a normal function call. But I guess that would *really* confuse

- Ken

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About