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

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

Thread Previous | Thread Next
Father Chrysostomos
December 10, 2017 22:24
Re: [perl #115814] open ${\$x} leaks
Message ID:

On Dec 9, 2017, at 5:52 PM, Zefram via RT <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About