Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters
[perl #112126] Hash::Util export bug
 

Index | Next | Previous | View Flat


perlbug-followup at perl

Apr 29, 2012, 6:30 PM


Views: 162
Permalink
[perl #112126] Hash::Util export bug [In reply to]

On Sun Apr 29 10:53:12 2012, sprout wrote:
>
> Instead of giving another armchair response, I thought I’d better
> actually run some tests. :-)
>
> You’ll notice that lock_ref_keys does Internals::SvREADONLY(%$hash),
> while the two problematic functions do Internals::SvREADONLY($hash).
> *That’s* the problem. It was checking to see whether the $hash scalar
> was read-only.
>

Ah! The power of multiple application of multiple eyeballs!

> See the attached diff, which is against the 112126/sprout branch in your
> repository.
>

Yes, that resolved the problem. I applied your patch to that branch,
tested it, merged it into that repository's master, tested again, then
manually applied the patches to my local branch of blead.

I believe that if you apply the patch attached,
0001-Document-hashref_locked-and-hashref_unlocked-.-Add-t.patch, in
addition to the patch I submitted on Apr 22, you should get a better
ext/Hash-Util/lib/Hash/Util.pm as well as an ext/Hash-Util/t/Util.t that
provides 100% statement coverge of that package.

Thank you very much.
Jim Keenan



---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=112126
Attachments: 0001-Document-hashref_locked-and-hashref_unlocked-.-Add-t.patch (8.14 KB)

Subject User Time
[perl #112126] Hash::Util export bug perlbug-followup at perl Apr 21, 2012, 6:07 AM
    Re: [perl #112126] Hash::Util export bug demerphq at gmail Apr 22, 2012, 3:54 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 22, 2012, 6:54 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 24, 2012, 6:03 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 25, 2012, 6:13 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 25, 2012, 8:33 PM
    Re: [perl #112126] Hash::Util export bug demerphq at gmail Apr 26, 2012, 12:55 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 26, 2012, 9:49 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 28, 2012, 5:41 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 28, 2012, 5:59 PM
    Re: [perl #112126] Hash::Util export bug doy at tozt Apr 28, 2012, 7:54 PM
        Re: [perl #112126] Hash::Util export bug nick at ccl4 May 8, 2012, 4:27 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 28, 2012, 7:59 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 28, 2012, 9:15 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 28, 2012, 9:17 PM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 29, 2012, 5:00 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 29, 2012, 5:21 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 29, 2012, 10:52 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 29, 2012, 10:53 AM
    [perl #112126] Hash::Util export bug perlbug-followup at perl Apr 29, 2012, 6:30 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.