Class::InsideOut 1.02 review
DownloadClass::InsideOut is a Perl module with a safe, simple inside-out object construction kit. SYNOPSIS package My::Class; u
|
|
Class::InsideOut is a Perl module with a safe, simple inside-out object construction kit.
SYNOPSIS
package My::Class;
use Class::InsideOut qw( public private register id );
public name => my %name; # accessor: name()
private age => my %age; # no accessor
sub new { register( shift ) }
sub greeting {
my $self = shift;
return "Hello, my name is $name{ id $self }";
}
This is a simple, safe and streamlined toolkit for building inside-out objects. Unlike most other inside-out object building modules already on CPAN, this module aims for minimalism and robustness:
Does not require derived classes to subclass it
Uses no source filters, attributes or CHECK blocks
Supports any underlying object type including black-box inheritance
Does not leak memory on object destruction
Overloading-safe
Thread-safe for Perl 5.8 or better
mod_perl compatible
Makes no assumption about inheritance or initializer needs
It provides the minimal support necessary for creating safe inside-out objects and generating flexible accessors.
Requirements:
Perl
Class::InsideOut 1.02 keywords