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

[perl #120017] perlcall documentation has no good example with POPs

Thread Previous
From:
James E Keenan via RT
Date:
September 27, 2013 01:47
Subject:
[perl #120017] perlcall documentation has no good example with POPs
Message ID:
rt-3.6.HEAD-31239-1380246459-1018.120017-15-0@perl.org
On Thu Sep 26 03:49:32 2013, ruslan.zakirov@gmail.com wrote:
> This is a bug report for perl from Ruslan.Zakirov@gmail.com,
> generated with the help of perlbug 1.39 running under perl 5.16.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> perldoc perlcall lacks good example with POPs. Since poped SV is on
> temp stack it will be freed as soon as you call FREETMPS and LEAVE
> the block.
> 
> I had to grep cpan to understand what to do to avoid freeing. Still
> not shure if it's ok to call SvREFCNT_inc(POPs) or if it has to be
> newSVsv(POPs). If former then example should use most effective
> variant of SvREFCNT_inc*.


Do you feel you learned enough from that grepping to write a first draft
of such documentation?

I'm sure that others knowledgeable in that area could help get a draft
polished enough to be included in the docs.

Thank you very much.
Jim Keenan


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

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About