P is for Practical | |
PerlMonks |
Re^3: I don't understand UNIVERSAL::DOES() (automethodizing)by tye (Sage) |
on Mar 09, 2007 at 16:38 UTC ( [id://604005]=note: print w/replies, xml ) | Need Help?? |
For those of us who can't just presume that 5.010 <= $], how about making UNIVERSAL::isa() check $_[0]->can("isa") if $_[0] is blessed and deferring to that sub if it isn't UNIVERSAL::isa()? Or do you also need to worry about Some::Class::isa() calling UNIVERSAL::isa() and is there no sane way to work around that even from C? Or is there some other reason that this wouldn't be a good idea? - tye
In Section
Seekers of Perl Wisdom
|
|