Robby Walker

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

  • 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

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

  • Allow for parent constructor parameter specification.

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.