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

Re: [PATCH] Disable constant folding of sprintf

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
December 1, 2005 04:19
Subject:
Re: [PATCH] Disable constant folding of sprintf
Message ID:
20051201131947.65b123bc@grubert.mandrakesoft.com
Gisle Aas wrote:
> > The reason PL_sv_undef is destroyed in the first example is that
> > 'sprintf "xxx%n"' is constant folded, and the readonly-test is
> > bypassed in sv_force_normal() unless IN_PERL_RUNTIME.
> 
> This patch avoids this problem by simply disabling constant folding
> for sprintf.

Simple, but effective.
Thanks, applied to bleadperl as change #26236.

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