Ausführliche Beschreibung | This package provides for efficient and simple prototype-based
programming in Perl. You can provide different subroutines for each
object, and also have objects inherit their behavior and state from
another object.
.
The structure of an object is inspected and modified through *mirrors*,
which are created by calling "reflect" on an object or class that
inherits from "Class::Prototyped".
.
The author says: 'When I reach for "Class::Prototyped", it's generally
because I really need it. When the cleanest way of solving a problem is
for the code that uses a module to subclass from it, that is generally
a sign that "Class::Prototyped" would be of use. If you find yourself
avoiding the problem by passing anonymous subroutines as parameters
to the "new" method, that's another good sign that you should be using
prototype based programming. If you find yourself storing anonymous
subroutines in databases, configuration files, or text files, and then
writing infrastructure to handle calling those anonymous subroutines,
that's yet another sign. When you expect the people using your module
to want to change the behavior, override subroutines, and so forth,
that's a sign'.
|