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

Re: SvOOK_on

Thread Previous | Thread Next
Jarkko Hietaniemi
November 25, 2000 10:26
Re: SvOOK_on
Message ID:
On Sat, Nov 25, 2000 at 06:20:15PM +0000, Nicholas Clark wrote:
> 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

I tried to find such a spot once, too, with as plentiful results as you
have got.

> some extensions use it?
> Nicholas Clark

$jhi++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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