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
Tony Cook via RT
July 12, 2013 00:29
[perl #117793] Extend SvREFCNT* to work on any perl variable type
Message ID:
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.


via perlbug:  queue: perl5 status: open

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