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

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

Thread Previous | Thread Next
From:
Tony Cook via RT
Date:
August 9, 2013 02:11
Subject:
[perl #117793] Extend SvREFCNT* to work on any perl variable type
Message ID:
rt-3.6.HEAD-2552-1376014294-1218.117793-15-0@perl.org
On Thu Jul 11 17:28:56 2013, tonyc wrote:
> 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.

There was no response at all, everyone loves it!

Applied as da1929e7566d4399b20541f8609bd48b40663034.

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