Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re^2: I don't understand UNIVERSAL::DOES()
in thread I don't understand UNIVERSAL::DOES()

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        

Replies are listed 'Best First'.
Re^4: I don't understand UNIVERSAL::DOES() (automethodizing)
by demerphq (Chancellor) on Mar 10, 2007 at 10:50 UTC

    Or is there some other reason that this wouldn't be a good idea?

    I think that it could have backwards compatibility issues that would preclude it from happening in UNIVERSAL::isa(). Which is why ive been harping on about making DOES do the right thing.

    ---
    $world=~s/war/peace/g

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found