develooper Front page | perl.perl5.porters | Postings from September 2014

Re: Hash::Util and read-only values

Thread Previous | Thread Next
From:
demerphq
Date:
September 20, 2014 03:06
Subject:
Re: Hash::Util and read-only values
Message ID:
CANgJU+Ukta+9EYhgT49YjZ0L0K8GK5tmJzqv5d0VKJVcF+iuFA@mail.gmail.com
On 20 September 2014 05:03, demerphq <demerphq@gmail.com> wrote:

> On 20 September 2014 03:11, Father Chrysostomos <sprout@cpan.org> wrote:
>
>> Yves Orton wrote:
>> > On 20 September 2014 00:48, Father Chrysostomos <sprout cpan.org>
>> wrote:
>> >
>
> Since Hash::Util is the part of the core (if you will) that uses the
>> flag differently, we do need to discuss how it will behave, since that
>> is where the bugs in the design show through.
>>
>>
> Again that isn't clear to me. Hash::Util simply uses
> Internals::SvREADONLY(), anything that uses it, and stuff does, is an issue.
>
>

I think we could add a new bit "locked", and then make SvREADONLY() use it.
That would be a reasonable fix. But again it doesnt require changing
Hash::Util at all. It requires changing universal.c XS_Internals_SvREADONLY

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