go ahead... be a heretic | |
PerlMonks |
Re^2: perspective and object-disorientationby adrianh (Chancellor) |
on Jan 18, 2003 at 19:04 UTC ( [id://228029]=note: print w/replies, xml ) | Need Help?? |
Also, from a code re-entrancy requirement, since changes to @ISA are global, it would be very difficult for two sections of code that had different 'perspectives' to access the same set of objects at the same time. While I don't think changing @ISA willy-nilly is a good idea, changes are global only if you choose to make them that way. @ISA can be changed locally using... well... local :-) It can be a useful idiom when testing to make one object temporarily appear as another.
In Section
Meditations
|
|