On Sat, May 22, 2004 at 09:23:34PM +0000 Erland Sommarskog wrote:

> I realized that I wanted to find out in my XS module whether an input
> parameter was readonly or not. I was browsing perlapi.html, but could
> find any function.
> 
> Searching Google, I soon found that SvREADONLY(sv) would do the task,
> and it runs fine with ActiveState build 809.
> 
> But the only reference in perlapi.html is in passing under sv_magicext.
> I don't really like using undocumented functions. So is SvREADONLY
> supported? Deprecated? Should I use something else?

No, SvREADONLY is totally ok. The question whether a macro or function
is documented in perlapi.pod isn't usually a strong indication for
anything. perlapi is far from complete. I think many of the XS authors
have fallen into the habit of having the perl source at hand and looking
up things in there, and thus short-circuiting perlapi.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval

Reply via email to