develooper Front page | perl.perl5.porters | Postings from June 2012

What does CvOUTSIDE mean on an undef sub?

Thread Next
Father Chrysostomos
June 10, 2012 16:18
What does CvOUTSIDE mean on an undef sub?
Message ID:
As far as I know, CvOUTSIDE only exists for pads to work.  But even after undefining a sub it still has CvOUTSIDE set.  Does it need to?

I’ve just noticed that a forward declaration like ‘sub foo;’ gets a pad when reified, and it also has CvOUTSIDE set, based on where the reification happened.  But the subroutine still has no body.  And definining it for real replaces the pad and CvOUTSIDE. 

This seems like a waste of CPU cycles to me.

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