Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Dynamic inheritance

by Prior Nacre V (Hermit)
on Aug 06, 2004 at 14:14 UTC ( [id://380551]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://380551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-29 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found