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

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

Thread Next
Ben Morrow
August 31, 2010 03:20
[perl #77548] [PATCH] Re: Runtime hinthash from XS
Message ID:
# New Ticket Created by  Ben Morrow 
# Please include the string:  [perl #77548]
# in the subject line of all future correspondence about this issue. 
# <URL: >

At  5PM +0100 on 22/08/10 you (Ben Morrow) wrote:
> What's the recommended way to get at the runtime hinthash values for
> your caller from XS (other than eval_pv("(caller N)[10]"))?
> refcounted_he_fetch is not API (and shouldn't be), but there doesn't
> seem to be any other way. Do we need a new API for this, or am I missing
> something?

OK, assuming 'yes, we need a new API', here's a patch for a new API.

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.


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