On Wed, Nov 01, 2000 at 10:58:31AM +0000, Alan Burlison wrote:
> "Randy J. Ray" wrote:
> 
> > In my Perl-RPM package, it's been recently pointed out to me that the
> > object destructors aren't getting called when the object undef'd, but
> > rather at the end of the script (well, the bug report focused on a
> > different problem, but this is the source of it).
> > 
> > I've done testing and confirmed this. My guess is that something in the
> > nature of the self-tying object is causing the ref-count to be higher, and
> > I'm not successful in getting it sufficiently down. My TIEHASH method is
> > pure XS, and the new method looks like this:
> 
> Self-ties are badly broken, and in the development version of perl
> they are disallowed - see the recent p5p traffic for details.  Use

s/they are disallowed/self-tied arrays and hashes are completely disallowed
because they tend to cause unbounded recursion leading into core dumps/

Someone whose code dearly depends on those self-tied aggregate datatypes
would of course be a prime champion for fixing them... champion in the
sense of facing strange beasts living in the dark shadowy underworld also
known as perlguts.

> a normal tie if at all possible - the overhead is only a single extra HV.
> 
> -- 
> Alan Burlison

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to