Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Why callbacks?

by Joost (Canon)
on Mar 30, 2007 at 17:56 UTC ( #607555=note: print w/replies, xml ) Need Help??

in reply to Re: Why callbacks?
in thread Why callbacks?

Ruby mixins aren't really callbacks - they insert new methods into classes / objects. Some of those methods might be used as callbacks, but a clearer example of callbacks in ruby are code blocks/Procs

Replies are listed 'Best First'.
Re^3: Why callbacks?
by friedo (Prior) on Mar 31, 2007 at 01:19 UTC
    You can do mixins in Perl as well, by using Exporter to import methods into an OO class. CGI::Application uses this technique to add methods via plugins.
Re^3: Why callbacks?
by exussum0 (Vicar) on Mar 30, 2007 at 21:03 UTC
    Right right, was using the wrong terminology for what i meant. tnx.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2020-10-25 02:59 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (248 votes). Check out past polls.