develooper Front page | perl.perl5.porters | Postings from December 2021

Re: "no snails"; or having signatured subs complain about @_

Thread Previous | Thread Next
Dave Mitchell
December 9, 2021 19:08
Re: "no snails"; or having signatured subs complain about @_
Message ID:
On Thu, Dec 09, 2021 at 05:26:54PM +0000, Dave Mitchell wrote:
> No, because the values can be popped off the stack once assigning args to
> params is done. (Although, they'd have to be kept in the presence of 'perl
> -d' in order to keep caller() and @DB::args working).

Correction - it's not the presence of '-d', its calling calling() from the
DB package - so potentially the args would always need to be left on the
stack until the end of the sub call, unless we abolish @DB::args.

"Strange women lying in ponds distributing swords is no basis for a system
of government. Supreme executive power derives from a mandate from the
masses, not from some farcical aquatic ceremony."
    -- Dennis, "Monty Python and the Holy Grail"

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