in reply to Re: Dynamic inheritance
in thread Dynamic inheritance

This is absolutely correct.

In a more general sense, you can perform any array operation on @ISA at runtime to dynamically alter the OO hierarchy. push(), shift(), splice(), etc. all work.

Regards,

PN5

Replies are listed 'Best First'.
Re^3: Dynamic inheritance
by Anonymous Monk on Aug 06, 2004 at 20:54 UTC
    I think there was something about ->can vs writes to ::ISA.
    So it may not work in this case.

      Could you elaborate on that - I'm not quite with you.

      The can() method is in the UNIVERSAL module and is available to all objects - so nothing special there.

      When you say "... writes to ::ISA ...", are you referring to manipulation of @Some::Package::ISA or something else?

      Regards,

      PN5