develooper Front page | perl.perl5.porters | Postings from November 2003

Re: need your help to do some (simple?) patching

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 19, 2003 05:14
Subject:
Re: need your help to do some (simple?) patching
Message ID:
20031119130422.2752.17@llama.elixent.com
Jan Dubois <jand@ActiveState.com> writes:
>
>I'm under the impression that you believe that the embedding application
>will not need to call PERL_SET_CONTEXT() if all places in the core pass
>aTHX explicitly.  I'm trying to explain why this is not true:
>
>When you call XS code, 

And that XS code has not done 

#define PERL_NO_GET_CONTEXT

>it uses PERL_GET_THX to retrieve the context from
>TLS and pass this on to any Perl APIs it is calling.  So if you are not
>setting the context before calling into Perl, then Perl cannot call into
>XS code.  XS code does *not* use the passed in context. aTHX is remapped
>to PERL_GET_THX.
>
>Are we talking about the same thing?
>-Jan


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