in reply to Re^2: How to differentiate hash reference and object reference?
in thread How to differentiate hash reference and object reference?
No, isa() returns true if whatever method isa() is for the invocant it returns true. If I wrote an object and overrode isa() to return true based on a the phase of the moon, that's what it would do.
That's probably unwise code to write, but the purpose of having isa() be a method is so that classes can override it when it makes sense to do so.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to differentiate hash reference and object reference?
by phaylon (Curate) on Aug 31, 2005 at 20:08 UTC |