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

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

Thread Next
From:
Ben Morrow
Date:
August 31, 2010 03:20
Subject:
[perl #77548] [PATCH] Re: Runtime hinthash from XS
Message ID:
rt-3.6.HEAD-5116-1283246942-290.77548-75-0@perl.org
# New Ticket Created by  Ben Morrow 
# Please include the string:  [perl #77548]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77548 >


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.

Ben


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