Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Callback 1.07

    Download button

    No screenshots available
    Downloads: 390  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Muir Sharnoff and Raphael Manfredi | More programs
    Perl Artistic License / FREE
    May 24th, 2007, 00:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    object interface | function callbacks | Perl module | Callback | object | interface

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM