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

Re: New SV Flag

Thread Previous | Thread Next
Arthur Bergman
February 9, 2003 23:45
Re: New SV Flag
Message ID:

On måndag, feb 10, 2003, at 00:18 Europe/Stockholm, Nicholas Clark 

> On Mon, Feb 03, 2003 at 01:14:59AM +0100, Arthur Bergman wrote:
>> I would like all SVs that are living in the optree to be of this kind,
>> this would allow us to move constants out of the pad and let them be
>> PVMG so they can't be upgraded anymore, same applies for the
> Does this mean that the SVs would not be reference counted? They would
> live as long as their ops? If so, this will SEGV once more:
> perl  -le 'my $a; BEGIN {$a = \"Foo"}; $a = $$a';
> Nicholas Clark

No, since the SVs are shared between all the opcodes using the same 
(or can be shared)


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