Callback

Callback is an object interface for function callbacks.
Download

Callback Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Muir Sharnoff and Raphael Manfredi
  • Publisher web site:
  • http://search.cpan.org/~muir/

Callback Tags


Callback Description

Callback is an object interface for function callbacks. Callback is an object interface for function callbacks.SYNOPSIS use Callback; my $callback = new Callback (&myfunc, @myargs); my $callback = new Callback ($myobj, $mymethod, @myargs); my $callback = new Callback ($old_callback, @myargs); $callback->call(@some_more_args);Callback provides a standard interface to register callbacks. Those callbacks can be either purely functional (i.e. a function call with arguments) or object-oriented (a method call on an object).When a callback is constructed, a base set of arguments can be provided. These function arguments will preceed any arguments added at the time the call is made.There are two forms for the callback constructor, depending on whether the call is a pure functional call or a method call. The rule is that if the first argument is an object, then the second argument is a method name to be called on that object. Method resolution happens at the time the Callback object is built: an error will be raised if it cannot be found.Callback objects built for object-oriented calls also have the property of being serializable via Storable. Purely functional callabacks cannot be serialized because CODE references are not supported by Storable.Callback objects can be created from existing Callback objects. Any arguments will be appended onto the original list of arguments. Requirements: · Perl


Callback Related Software