Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perspective and object-disorientation

by chromatic (Archbishop)
on Jan 18, 2003 at 01:21 UTC ( [id://227889]=note: print w/replies, xml ) Need Help??


in reply to perspective and object-disorientation

@ISA influences two things. One, it lists where to look for methods that aren't found in the current class. Two, it lists where to look when isa() is called on the class or an object of a class.

I think those are two different concepts: where does this class keep the implementations of its behavior and how does this class relate to other classes. (I'd also add in a third concept, what kind of behaviors can this class perform, but not everyone sees the world this way.)

Right now, I can't come up with any really good reasons (besides in testing, where I do it way too often) to change @ISA at runtime, as there are other ways to change #1 and #2 above, but it's nice to work with a language that allows it, if necessary.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found