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.