class_tiny
Minimalist class construction
class_tiny
Descrizione
This module offers a minimalist class construction kit in around 120 lines of code. Here is a list of features: - defines attributes via import arguments - generates read-write accessors - supports lazy attribute defaults - supports custom accessors - superclass provides a standard new constructor - new takes a hash reference or list of key/value pairs - new supports providing BUILDARGS to customize constructor options - new calls BUILD for each class from parent to child - superclass provides a DESTROY method - DESTROY calls DEMOLISH for each class from child to parent Multiple-inheritance is possible, with superclass order determined via mro::get_linear_isa. It uses no non-core modules for any recent Perl. On Perls older than v5.10 it requires MRO::Compat. On Perls older than v5.14, it requires Devel::GlobalDestruction.
Installa
Canale stable v1.008-2
Questa app e' curata in HaikuPorts. Installala da li', e' gia' disponibile in HaikuDepot.
pkgman install class_tiny
Attenzione: il file arriva dal server di HaikuPorts, ma installarlo a mano non è la strada consigliata. È «pkgman» a risolvere le dipendenze che un .hpkg non porta con sé: un pacchetto installato da solo potrebbe non partire. Usa il comando pkgman qui sopra, a meno che tu non sappia esattamente perché ti serve il file.