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? >-JanThread Previous | Thread Next