develooper Front page | perl.perl5.porters | Postings from August 2008

Re: the warning about parents in Universal->isa

Thread Previous | Thread Next
Yuval Kogman
August 22, 2008 08:11
Re: the warning about parents in Universal->isa
Message ID:
On Fri, Aug 22, 2008 at 15:56:29 +0100, Nicholas Clark wrote:
> To my mind it seems more logical behaviour that you ISA what you say you ISA,
> always, rather than the intersection of what you say you are, and what is
> loaded. After all, you get a warning (and probably an error) if you try to
> do anything based on what you say you ISA if it's not loaded.

I find this warning annoying.

In Class::MOP anonymous classes are garbage collected, and their
DESTROY handler deletes the stash (this is used for various runtime

During global destruction since GC the ordering is not guaranteed,
superclasses can disappear before their subclasses, triggering this

Also now that we have DOES it seems fair to just shove names onto
@ISA for interfaces with no functionality whatsoever.

In short, ++

  Yuval Kogman <>  0xEBD27418

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