![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Will the real Internals module please stand up?by dragonchild (Archbishop) |
on Mar 01, 2009 at 05:00 UTC ( #747247=perlquestion: print w/replies, xml ) | Need Help?? |
dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
After shaving a yak, I ended up in Hash::Util, specifically in lock_keys(). Noticed heavy use in the PurePerl version of Internals, specifically Internals::SvREADONLY(). Never having heard of it, I looked it up. Lo and behold, although SvREADONLY() was used by the XS, it wasn't exposed by the XS. Bopping around a bit, I found use of a bunch of functions in the Internals:: namespace that aren't exposed by Internals. And, furthermore, it seems like these functions are available without use-ing Internals itself.
So, the question - what's in Internals:: and where can I get some documentation on it? Sounds like all sorts of goodies are in there and I wanna get me some of that! :-) Update: Per Anonymonk's reply, apparently a whole bunch of seemingly-unrelated things are provided in universal.c and that's just the list for 5.8.9. In 5.10.0's universal.c, there's twice the list. (Scroll down halfway looking for /^XS\(/). Why are these functions all stuffed together in universal.c? Where are they documented? If they're exposed, I would think they would be documented somewhere. My criteria for good software:
Back to
Seekers of Perl Wisdom
|
|