note BrowserUk <blockquote><i>Either I reply to your post or to Re: Use perl type without perl.</i></blockquote> <p>The latter would have made more sense I think. <p>But, reading the OP, nowhere is it indicated that he want to use the perl interpreter at all. Indeed, this <i>" I mean don't invoke perl interpreter or struct."</i> could be construed as saying he doesn't want to. <P>I took the OP to mean that he would like to use some of the perl data types in a completely non-Perl piece of code. Just (say) as a convenient source of an efficient hash implementation. And to that end, it <b><i>ought to possible</i></b> to use them without perl contexts coming into it at all. <p>The fact that it isn't possible is symptomatic of one (of many) of the anachronisms in the way the perl sources are laid out. <P>(Guessing) 80% or more of perl internal functions that receive and pass-through a perl context handle, make no use of it. <P>And (again guessing) other than to pass it on to perl internal functions they call, 90%+ of user XS functions make no use of the context handle they get passed. <P>Only those function that <i>need the perl context</i> should ever need be aware of it. They can retrieve it from TLS on-demand. <p>But apparently, TLS is so inefficiently implemented under pthreads, it is cheaper to tie up a register in every function, than to have the the 10% than need access to fetch it on demand. <p>I was completely baffled by your reference to GObject at first, but now I'm guessing that you are suggesting that if the OP wants a ready source of a hash implementation, GLib comes with one he might find more convenient than perl's? That could be more clearly stated. <div class="pmsig"><div class="pmsig-171588"> <hr /> <font size=1 > <div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div> <div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div> <div>"Science is about questioning the status quo. Questioning authority". </div> <div>In the absence of evidence, opinion is indistinguishable from prejudice. <p align=right> [|RIP Neil Armstrong]</p></div> </font> </div></div> 995530 995599