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

Re: [perl #77548] [PATCH] Re: Runtime hinthash from XS

Thread Previous | Thread Next
From:
Zefram
Date:
September 2, 2010 07:23
Subject:
Re: [perl #77548] [PATCH] Re: Runtime hinthash from XS
Message ID:
20100902142307.GK4205@lake.fysh.org
Ben Morrow wrote:
>I would also like to suggest that all references to struct refcounted_he
>be removed from the public API and the public sections of the headers.
>(This would include removing B::RHE entirely.) AFAICS it should be
>treated as an internal implementation matter, and any APIs dealing with
>the runtime hinthash should pass in COPs instead.

I disagree with always indirecting through the COP.  It's perfectly
meaningful to handle a hint hash separately from a COP.

For Parse::Perl, which currently does the PERL_CORE dance, I not only
need to handle hint hashes outside COPs, I need to create and delete
references to them.  Currently I borrow refcounted_he_free from the
core, and implement my own refcounted_he_inc.  I think this is all
reasonable stuff to do, and should be supported by the API.  (I'm going
to systematically go through what Parse::Perl needs in the API; this is
just what it needs that's relevant to this thread.)

-zefram

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