develooper Front page | perl.perl5.porters | Postings from December 2017

Re: [perl #115814] open ${\$x} leaks

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
December 10, 2017 22:24
Subject:
Re: [perl #115814] open ${\$x} leaks
Message ID:
EA16188A-2319-412B-B9F3-23FB5A6F13EE@cpan.org

On Dec 9, 2017, at 5:52 PM, Zefram via RT <perlbug-followup@perl.org> wrote:

> Father Chrysostomos wrote:
>> newGVgen, which creates a new handle (with a name like _GEN_0), also
>> adds it to the symbol table.  It is an API function.  Should it stop
>> adding it to the symbol table?
> 
> It's not documented, and interning isn't a crazy thing to do, so I'd
> take the behaviour to be definitive.  The bug isn't newGVgen() interning,
> it's rv2gv using newGVgen().
> 
> But if most users of newGVgen() wouldn't be affected by it not interning,
> that suggests that they don't actually want this behaviour, and so
> newGVgen() is probably the wrong thing for them to use.  Tickets should
> be filed against the individual CPAN distros telling them to do something
> else.

The main offender is the default typemap.  Please review the attached patch.

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