Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 0a084fb8617cd3da731a19d000ad189a

perl-Class-XSAccessor-Array-1.40.0-1mdv2010.0.i586.rpm

Description:

The module implements fast XS accessors both for getting at and setting an
object attribute. Additionally, the module supports mutators and simple
predicates ('has_foo()' like tests for definedness of an attributes). The
module works only with objects that are implemented as *arrays*. Using it
on hash-based objects is bound to make your life miserable. Refer to the
Class::XSAccessor manpage for an implementation that works with hash-based
objects.

A simple benchmark showed more than a factor of two performance advantage
over writing accessors in Perl.

Since version 0.10, the module can also generate simple constructors
(implemented in XS) for you. Simply supply the 'constructor =>
'constructor_name'' option or the 'constructors => ['new', 'create',
'spawn']' option. These constructors do the equivalent of the following
perl code:

Sources packages:

Other version of this rpm: