Class::Structured - provides a more structured class system for Perl


NAME

Class::Structured - provides a more structured class system for Perl


DESCRIPTION

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.


HISTORY


METHODS

declare_abstract

Declares an abstract function in the current package.

list_abstracts

Provides a list of all the abstracts left by a package for subclasses to implement.

check_abstracts

When instantiating a class, make sure that it has declared all the necessary abstracts

constructor

Creates a new constructor.

default_constructor

Creates a new constructor, and also marks it as the default.

implementation

Prototyped sub used to generate syntax

construct

Internal function used to set up a class variable.

define_variables


TODO


BUGS

Probably some


AUTHORS AND COPYRIGHT

Written by Robby Walker for Yet Another Perl Journal, CD-Lab (www.cd-lab.com), and Point Writer (www.pointwriter.com).

All Rights Reserved.