| Class-Structured documentation | view source | Contained in the Class-Structured distribution. |
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.
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.
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.
| Class-Structured documentation | view source | Contained in the Class-Structured distribution. |