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


Thread Previous | Thread Next
Nicholas Clark
November 25, 2000 10:20
Message ID:
Does any part of perl actually use SvOOK_on()
[to cheat and make the PV not actually point to the start of the malloc()ed
buffer, with the offset to the true start stored in the IV slot]

perl's code seems robust to turn if off when needed, eg:

#define SvIOKp_on(sv)           ((void)SvOOK_off(sv), SvFLAGS(sv) |= SVp_IOK)
#define SvIOK_on(sv)            ((void)SvOOK_off(sv), \
                                    SvFLAGS(sv) |= (SVf_IOK|SVp_IOK))

but I can find no part of the perl tree that ever seems to turn on this
feature. Am I missing something, or is this now an unused vestige, or do
some extensions use it?

Nicholas Clark

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About