in reply to Tail Recursion in Perl

if i remember well, tail recursion is automatically used by compilers when optimizing. At least some C compiler should.

Replies are listed 'Best First'.
Re: Re: Tail Recursion in Perl
by stvn (Monsignor) on Jan 03, 2004 at 15:22 UTC
    Yes, that is exactly what i am thinking, using Perl to manipulate the op-code tree in the CHECK stage of the compilation process. The more I look, the less i think its possible. I guess I will have to wait for Perl 6. -stvn