develooper Front page | perl.perl5.porters | Postings from February 2023

Re: PERL_RC_STACK branch: first cut

Thread Previous | Thread Next
From:
demerphq
Date:
February 27, 2023 11:20
Subject:
Re: PERL_RC_STACK branch: first cut
Message ID:
CANgJU+WstnTVnntkD-MzQQ5Z49iVWH+88ObXgrUJNCzp2wdH8g@mail.gmail.com
On Sun, 26 Feb 2023 at 17:06, Dave Mitchell <davem@iabyn.com> wrote:

> unchanged: only when built with -DPERL_RC_STACK does it behave
>

By this I am pretty sure he means feeding Configure the following:

   -Accflags=-DPERL_RC_STACK

You can validate that you have built Perl correctly by doing

./perl -V  | grep PERL_RC_STACK

if it outputs PERL_RC_STACK then you have done it correctly.

For those who want a simple example of the bug that this patch fixes here
is a simple example:

With blead perl this program should print out "foo", but does not.
$ perl -le'my @a=("foo"); sub t {@{$_[0]}=(); print $_[1];} t(\@a,$a[0]);'

With Dave's branch it behaves as expected:
$ ./perl -le'my @a=("foo"); sub t {@{$_[0]}=(); print $_[1];}
t(\@a,$a[0]);'
foo

cheers,
yves

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