On Thu, 30 Jun 2005 at 08:09 -0000, Michael G Schwern via RT...:
On Thu, Jun 30, 2005 at 10:02:27AM +0200, demerphq wrote:
Why would you do this anyway? What is the point of a package being ISA itself?
Other way around.
push @Some::Other::Package::ISA, __PACKAGE__;
Term::UI does this.
push @Term::ReadLine::Stub::ISA, __PACKAGE__
unless grep { $_ eq __PACKAGE__ } @Term::ReadLine::Stub::ISA;
Michael points to the very line that highlighted the problem, as
that push to ISA resulted in the
Modification of a read-only value attempted
error with blead perl. (my example was contrived, but not as simple
as it could have been.)