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

SvOOK_on

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
November 25, 2000 10:20
Subject:
SvOOK_on
Message ID:
20001125182015.A13717@plum.flirble.org
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About