develooper Front page | perl.perl5.porters | Postings from January 2008

Re: For 5.12: tail calls for methods

Thread Previous | Thread Next
David Nicol
January 28, 2008 22:30
Re: For 5.12: tail calls for methods
Message ID:
anyone remember VAX asynchronous traps?

anyway a dispatching framework that would call a function and when
the thing that comes back is a redispatchme object, then dispatch that,
otherwise return it.

sub dispatch{

       my $result =

On Jan 17, 2008 12:23 PM, Aristotle Pagaltzis <> wrote:
> No, the right way of going about this is to provide alternative
> syntax that combines `goto &SUB` with putting things in `@_` such
> that the result looks just like a regular call, except for the
> new keyword or whichever syntax signifies the tail call.
> Regards,
> --
> Aristotle Pagaltzis // <>


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