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

Re: Motivation for replacing object methods at runtime

by Pic (Scribe)
on Jun 29, 2008 at 20:50 UTC ( [id://694634]=note: print w/replies, xml ) Need Help??


in reply to Motivation for replacing object methods at runtime

I think a better motivation for being able to replace subroutines dynamically is AOP. When you can manipulate the dispatch tables like this, some flavours of AOP become trivially easy to implement, simply insert an appropriate function and you're done (this works for any advice that only needs access to the subroutine's parameters).

Other kinds of AOP are a bit more difficult to implement, but as long as you want to apply advice on subroutines, you don't need to proxy objects (like it's often done in Java).

  • Comment on Re: Motivation for replacing object methods at runtime

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2026-02-19 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.