Class::DispatchToAll 0.11
Sponsored Links
Class::DispatchToAll 0.11 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
825
Date added:
2007-07-21
Publisher:
Thomas Klausner
Class::DispatchToAll 0.11 description
Class::DispatchToAll Perl module can dispatch a method call to all inherited methods.
SYNOPSIS
package My::Class;
our @ISA=qw(SomeClass SomeOtherClass More::Classes);
use Class::DispatchToAll qw(dispatch_to_all);
my $self=bless {},My::Class # not a proper constructor, I know..
# this calls some_method in all Classes My::Class inherits from
# and all classes those classes inherit from, and all ... you get
# the point.
$self->dispatch_to_all(some_method);
# saves all return values from all calls in an array
my @returns=$self->dispatch_to_all(some_method);
See the Docs of Damian Conways Module Class::Delegation for a good introduction about Dispatching vs. Inheritance.
Class::DispatchToAll enables you to call all instantances of a method in your inheritance tree (or labyrinth..).
The standard Perl behaviour is to call only the lefternmost instance it can fing doing a depth first traversial.
Imagine the following class structure:
C
/
A B C::C
/ /
A::A D
/
My::Class
Perl will try to find a method in this mess in this order:
My::Class -> A::A -> A -> B -> D -> B -> C::C -> C
(Note that it will look twice in B because B is a parent of both A::A and D))
As soon as Perl finds the method somewhere, it will short-circuit out of its search and invoke the method.
And that is exactly the behaviour Class::DispatchToAll changes.
If you use dispatch_to_all (provided by Class::DispatchToAll) to call your method, Perl will look in all of the aforementioned packages and run all the methods it can find. It will even collect all the return values and return them to you as an array, if you want it too.
SYNOPSIS
package My::Class;
our @ISA=qw(SomeClass SomeOtherClass More::Classes);
use Class::DispatchToAll qw(dispatch_to_all);
my $self=bless {},My::Class # not a proper constructor, I know..
# this calls some_method in all Classes My::Class inherits from
# and all classes those classes inherit from, and all ... you get
# the point.
$self->dispatch_to_all(some_method);
# saves all return values from all calls in an array
my @returns=$self->dispatch_to_all(some_method);
See the Docs of Damian Conways Module Class::Delegation for a good introduction about Dispatching vs. Inheritance.
Class::DispatchToAll enables you to call all instantances of a method in your inheritance tree (or labyrinth..).
The standard Perl behaviour is to call only the lefternmost instance it can fing doing a depth first traversial.
Imagine the following class structure:
C
/
A B C::C
/ /
A::A D
/
My::Class
Perl will try to find a method in this mess in this order:
My::Class -> A::A -> A -> B -> D -> B -> C::C -> C
(Note that it will look twice in B because B is a parent of both A::A and D))
As soon as Perl finds the method somewhere, it will short-circuit out of its search and invoke the method.
And that is exactly the behaviour Class::DispatchToAll changes.
If you use dispatch_to_all (provided by Class::DispatchToAll) to call your method, Perl will look in all of the aforementioned packages and run all the methods it can find. It will even collect all the return values and return them to you as an array, if you want it too.
Class::DispatchToAll 0.11 Screenshot
Class::DispatchToAll 0.11 Keywords
DispatchToAll
DispatchToAll Perl
DispatchToAll 0.11
to all
Perl module
method call
call to
method
Perl
dispatch
methods
b
module
Class::DispatchToAll
ClassDispatchToAll
Class::DispatchToAll 0.11
Bookmark Class::DispatchToAll 0.11
Class::DispatchToAll 0.11 Copyright
WareSeeker periodically updates pricing and software information of Class::DispatchToAll 0.11 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::DispatchToAll 0.11 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
birth control methods
research methods
birthing methods
methods of mayhem
suicide methods
methods of abortion
dispatch boat
methodist hospital houston
scientific method
columbus dispatch
methodist medical center
dispatch software
dispatch lyrics
perlane
methodist hospital
dispatch lexington nc
united methodist church
st louis post dispatch
Related Software
Log::Dispatch::Atom is a Perl module to log to an atom feed. Free Download
Class::NiceApi is a Perl module that translates your methodNames to my method_names. Free Download
classesfaq is a Perl module with frequently asked questions about the Perl classes pragma. Free Download
Log::Dispatch::File::Rolling is a Perl object for logging to date/time/pid stamped files. Free Download
Log::Dispatch::File::Alerts is a Perl object for logging to alert files. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
Class::Method::hash is a Perl module that helps you create methods for handling a hash value. Free Download
Class::IntrospectionMethods is a Perl module that creates methods with introspection. Free Download
Latest Software
Popular Software
Favourite Software