perl-OOTools - Pragmas to implement constructors and accessors

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-OOTools
Package version 2.4
Package release alt1
Package architecture noarch
Package type rpm
Installed size 85.40 KB
Download size 85.40 KB
Official Mirror
This pragma easily implements lvalue accessor methods for the properties of your Class (*lvalue* means that you can create a reference to it, assign to it and apply a regex to it; see also the KNOWN ISSUE entry elsewhere in this document), which are very efficient function templates that your modules may import at compile time. "This technique saves on both compile time and memory use, and is less error-prone as well, since syntax checks happen at compile time." (quoted from "Function Templates" in the perlref manpage)..
You can completely avoid to write the accessor by just declaring the names and eventually the default value, validation code and other option of your properties.
The accessor method creates a scalar in the class that implements it (e.g. $Class::any_property) and sets/gets it using the options you set.
This module allows also "lazy" data computing (see the `default' option).
IMPORTANT NOTE: Since the version 1.7 the options are ignored if you access the underlaying scalar without using the accessor, so you can directly access it when you need to bypass the options.


Package Version Architecture Repository
perl-OOTools - - -


Name Value
/usr/share/perl5 -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Class/ = 2.400
perl(Class/ = 2.400
perl(Class/ = 2.400
perl(Class/ = 2.400
perl(Class/ = 2.400
perl(Object/ = 2.400
perl(Object/ = 2.400
perl(Package/ = 2.400
perl(Package/ = 2.400
perl-OOTools = 2.4-alt1


Type URL
Binary Package perl-OOTools-2.4-alt1.noarch.rpm
Source Package perl-OOTools-2.4-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-OOTools rpm package:
    # sudo apt-get install perl-OOTools



See Also

Package Description
perl-OPC-0.04-alt1.noarch.rpm API for low-level manipulations with packages in OPC format (ECMA-376 Part 2)
perl-ORDB-AU-Census2006-0.01-alt1.noarch.rpm An ORLite-based ORM Database API
perl-ORDB-CPAN-Mageia-1.121690-alt1.noarch.rpm an ORM for CPAN packages available in Mageia
perl-ORDB-CPAN-Mandriva-1.100230-alt1.noarch.rpm an ORM for CPAN packages available in Mandriva
perl-ORDB-CPANMeta-0.10-alt1.noarch.rpm An ORLite-based ORM Database API
perl-ORDB-CPANMeta-Generator-0.12-alt1.noarch.rpm Generator for the CPAN Meta database
perl-ORDB-CPANMeta-Generator-scripts-0.12-alt1.noarch.rpm ORDB-CPANMeta-Generator scripts
perl-ORDB-CPANRT-0.04-alt1.noarch.rpm An ORLite-based ORM Database API
perl-ORDB-CPANRelease-0.01-alt1.noarch.rpm CPAN Testers Release Summary
perl-ORDB-CPANTS-0.05-alt1.noarch.rpm An ORM for the published CPANTS SQLite database
perl-ORDB-CPANTSWeight-0.03-alt1.noarch.rpm An ORLite-based ORM Database API
perl-ORDB-CPANTesters-0.09-alt1.noarch.rpm An ORM for the published CPAN Testers SQLite database
perl-ORDB-CPANUploads-1.08-alt1.noarch.rpm An ORLite-based ORM Database API for all CPAN uploads
perl-ORDB-DebianModules-0.01-alt1.noarch.rpm An ORLite-based ORM Database API
perl-ORDB-DebianModules-Generator-0.02-alt1.noarch.rpm generator for the database ORDB::DebianModules points to