>>>>> "Jarkko" == Jarkko Hietaniemi <[EMAIL PROTECTED]>
>>>>> wrote the following on Wed, 1 Nov 2000 07:35:36 -0600
Jarkko> On Wed, Nov 01, 2000 at 10:58:31AM +0000, Alan Burlison wrote:
>>
>> Self-ties are badly broken, and in the development version of perl
>> they are disallowed - see the recent p5p traffic for details. Use
>> a normal tie if at all possible - the overhead is only a single extra
>> HV.
Unfortunately, I *need* the ability to have both:
$obj->method()
and
$obj->{KEY} # Routed through __PACKAGE__::FETCH
work.
Some users are served by just the hash-access to the RPM database. But some
need the greater functionality, and it becomes even more of an issue with
the RPM::Header class, where there are a lot more non-hash-specific methods
to contend with, as well as the need for FETCH et al to behave in a tied
manner.
Jarkko> s/they are disallowed/self-tied arrays and hashes are completely
Jarkko> disallowed because they tend to cause unbounded recursion leading
Jarkko> into core dumps/
This is the first real problem I've run into, and it *seems* to stem from
the fact that the underlying object which $obj is a reference to (the PVHV)
has a REFCNT of 2, according to Devel::Peek.
Jarkko> Someone whose code dearly depends on those self-tied aggregate
Jarkko> datatypes would of course be a prime champion for fixing
Jarkko> them... champion in the sense of facing strange beasts living in
Jarkko> the dark shadowy underworld also known as perlguts.
Yeah yeah, and as we say at science fiction conventions around here,
"Captain Kirk, Mr. Spock, and Ensign Red-Shirt beam down to the planet
surface. Which one isn't coming back?"
I will take a look at this. My code is that dependant on it. But I also
need a band-aid solution, since any patch I come up with would be months
(at best) from making it into distribution versions of Perl (not just Red
Hat's, but Mandrake and others).
Randy
--
-------------------------------------------------------------------------------
Randy J. Ray | Programming is a Dark Art [...] The programmer is fighting
[EMAIL PROTECTED] | against the two most destructive forces in the universe:
415-777-9810 x246 | entropy and human stupidity. --Dr. Damian Conway