develooper Front page | perl.perl5.porters | Postings from November 2000

Re: [PATCH: perl@7825] SvTEMP-ness on rhs of aassign can wreak havoc

Thread Previous | Thread Next
From:
Benjamin Holzman
Date:
November 25, 2000 22:10
Subject:
Re: [PATCH: perl@7825] SvTEMP-ness on rhs of aassign can wreak havoc
Message ID:
20001126011131.F25040@ecnvantage.com
On Sat, Nov 25, 2000 at 09:06:52PM -0800, Gurusamy Sarathy wrote:
> On Sat, 25 Nov 2000 21:10:14 EST, Benjamin Holzman wrote:
> >The patch turns off SvTEMP on the rhs of any aassign.
> 
> I'm afraid turning off SvTEMP() permanently like that isn't quite the
> right approach.  (SVf_TEMP doesn't actually just indicate stealability.)
> 
> I'd suggest setting a flag that the code which does the PVX snarfing
> will notice.

Something like the attached?  I must confess that I'm frightened by the
semantic overloading of different bits of sv_flags, and not at all sure
that this won't break something, although the test suite passes 100%.

Ben

-- 
Benjamin Holzman				ECNvantage Corp.
Chief Technical Officer 			295 Park Avenue S., Suite 7C
(212) 358-0436 : bah@ecnvantage.com		New York, NY, 10010
$ perl -le 'print join $" ,reverse map ucfirst ,qw{ hacker perl another just}'

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