develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #117793] Extend SvREFCNT* to work on any perl variable type

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
July 12, 2013 00:29
Subject:
[perl #117793] Extend SvREFCNT* to work on any perl variable type
Message ID:
rt-3.6.HEAD-2552-1373588936-1323.117793-15-0@perl.org
On Sun Jun 23 18:04:00 2013, tonyc wrote:
> So should we be removing (or deprecating) the SvREFCNT_*() modifiers
> from Devel::Peek, but keep SvREFCNT() itself?
> 
> Or nuke them all, since they're available (if deliberately undocumented)
> in Internals?

Here's an alternative patch that:

- removes the modifier functions

- modifies the SvREFCNT() XS function to accept any type of object

- adds a very basic test

Note that the original patch leaked the SV SvREFCNT() returned.

For debate, I'll apply it in a few days unless there's some
overwhelmingly negative response.

Tony




---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=117793

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