Callback

 view release on metacpan or  search on metacpan

CHANGELOG  view on Meta::CPAN

+ 2002/11/20 vers 1.04

Can now create callback objects from callback objects.

Fix t/store.t -- it appears that the old require syntax for
specific versions no longer works.

+ 2001/03/29 vers 1.02 & 1.03

Changes from Raphael Manfredi <Raphael_Manfredi at pobox.com> to
add serialize method callbacks using Storable.

In addition Callback now dies if a method for a method callback
does not exist at the time of creation.

+ 2000/08/22 vers 1.02

Changes from Raphael Manfredi <Raphael.Manfredi at st.com> to 
add the method form of callback invocation.

Callback.pod  view on Meta::CPAN

=head1 NAME

Callback - object interface for function callbacks

=head1 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);

=head1 DESCRIPTION

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

README  view on Meta::CPAN

NAME
    Callback - 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);

DESCRIPTION
    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



( run in 0.802 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )