Group :: Desenvolvimento/Perl
RPM: perl-Class-Gomor
Principal Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
A versão atual: 1.03-alt1
Data da compilação: 19 janeiro 2015, 15:07 ( 479.4 weeks ago )
Tamanho:: 15.64 Kb
Home page: http://www.cpan.org
Licença: Artistic
Sumário: another class and object builder
Descrição:
Lista dos contribuidores Lista dos rpms provida por esta srpm:
ACL:
Data da compilação: 19 janeiro 2015, 15:07 ( 479.4 weeks ago )
Tamanho:: 15.64 Kb
Home page: http://www.cpan.org
Licença: Artistic
Sumário: another class and object builder
Descrição:
This module is yet another class builder. This one adds parameter checking in new constructor, that is to check for attributes existence, and definedness.
In order to validate parameters, the module needs to find attributes, and that is the reason for declaring attributes in global variables named @AS, @AA, @AO. They respectively state for Attributes Scalar, Attributes Array and Attributes Other. The last one is used to avoid autocreation of accessors, that is to let you declare your own ones.
Attribute validation is performed by looking at classes hierarchy, by following @ISA tree inheritance.
The loss in speed by validating all attributes is quite negligeable on a decent machine (Pentium IV, 2.4 GHz) with Perl 5.8.x. But if you want to avoid checking, you can do it, see below.
This class is the base class for Class::Gomor::Array and Class::Gomor::Hash, so they will inherite the following methods.
Mantenedor currente: Denis Smirnov In order to validate parameters, the module needs to find attributes, and that is the reason for declaring attributes in global variables named @AS, @AA, @AO. They respectively state for Attributes Scalar, Attributes Array and Attributes Other. The last one is used to avoid autocreation of accessors, that is to let you declare your own ones.
Attribute validation is performed by looking at classes hierarchy, by following @ISA tree inheritance.
The loss in speed by validating all attributes is quite negligeable on a decent machine (Pentium IV, 2.4 GHz) with Perl 5.8.x. But if you want to avoid checking, you can do it, see below.
This class is the base class for Class::Gomor::Array and Class::Gomor::Hash, so they will inherite the following methods.
Lista dos contribuidores Lista dos rpms provida por esta srpm:
- perl-Class-Gomor