This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_list() tail-call optimise
authorDavid Mitchell <davem@iabyn.com>
Tue, 18 Jun 2019 14:11:12 +0000 (15:11 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 24 Jun 2019 10:40:06 +0000 (11:40 +0100)
commitf23e164367e8b9494783181262bf4a1a16d26961
treea28db310a90e53a774ff5ce42441762689323250
parent9d15d64eb1a348ee92a700e57145d4f6f01bf21f
Perl_list() tail-call optimise

The part of this function that scans the children of e.g.

    @a = do { void; void; list }

applying list context only to the last child, tail call optimise that
call to list().

(See also a few commits later entitled "Perl_scalar() tail-call
optimise" for a discourse on setting PL_curcop (in)correctly.)
op.c