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

Re: goto and @_

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
June 6, 2022 20:04
Subject:
Re: goto and @_
Message ID:
CAB=rbOnpeqckn6KhjfWJbs_7BseT8f-Mpy5pAGM66nH-L=yjPw@mail.gmail.com
(sorry for previous early sent by mistake)


    sub foo($x,$y) {
>>         ...;
>>         no warnings;
>>         local @_ = (1,2);
>>         goto &tail_call;
>>     }
>>
>
how it will work with currying?

local @_ = (1, @_);
goto &orig_function;

or just:

orig_function (1, @_)

?

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