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

Re: For 5.12: tail calls for methods

Thread Previous | Thread Next
From:
David Nicol
Date:
January 28, 2008 22:30
Subject:
Re: For 5.12: tail calls for methods
Message ID:
934f64a20801282230j4dd53a68w3c0c4fdec621dd47@mail.gmail.com
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 <pagaltzis@gmx.de> 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 // <http://plasmasturm.org/>
>



-- 
`fortune`

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