Class::Structured - provides a more structured class system for Perl
Specifically, this function provides for variables with access specifiers that will inherit properly, for constructors, and for abstract functions.
Abstract functions may be used on their own with no performance penalty.
Constructors and access specified variables each imply the use of the other - and will incur a semi-significant performance penalty.
Also, note that when using all of the features it can cause problems to define an AUTOLOAD function - so please don't.
02/04/02 - Robby Walker - released - version 0.1
12/10/01 - Robby Walker - added private variable support, tested - version 0.003
12/06/01 - Robby Walker - adding abstract listing, checking and constructors - version 0.002
12/05/01 - Robby Walker - created the file, wrote abstract support - version 0.001
Declares an abstract function in the current package.
Provides a list of all the abstracts left by a package for subclasses to implement.
When instantiating a class, make sure that it has declared all the necessary abstracts
Creates a new constructor.
Creates a new constructor, and also marks it as the default.
Prototyped sub used to generate syntax
Internal function used to set up a class variable.
Allow for parent constructor parameter specification.
Probably some
Written by Robby Walker for Yet Another Perl Journal, CD-Lab (www.cd-lab.com), and Point Writer (www.pointwriter.com).
All Rights Reserved.
To install Class::Structured, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::Structured
CPAN shell
perl -MCPAN -e shell install Class::Structured
For more information on module installation, please visit the detailed CPAN module installation guide.