develooper Front page | perl.perl5.porters | Postings from June 2022

Re: goto and @_

Thread Previous | Thread Next
Dave Mitchell
June 6, 2022 12:14
Re: goto and @_
Message ID:
On Fri, Jun 03, 2022 at 06:50:19PM +0200, Ovid wrote:
> So goto requires @_.
> Is there a plan for this?

My intention was always that you would still be able to do:

    sub foo($x,$y) {
        no warnings;
        local @_ = (1,2);
        goto &tail_call;

the only slight complication being that I anticipated the warnings
category to disable off would be something like 'signatures', but in 5.36
at least, it's actually 'experimental' - and is likely to vary between

The Enterprise's efficient long-range scanners detect a temporal vortex
distortion in good time, allowing it to be safely avoided via a minor
course correction.
    -- Things That Never Happen in "Star Trek" #21

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