[vienna.pm] RFC: Class::Data::TIN
Thomas Klausner
domm at zsi.at
Thu Jan 17 05:30:45 CST 2002
* * * vienna-pm-list * * *
Hi!
Ich hab da ein pot. CPAN-Modul aus einem groessern Projekt ausgekoppelt und
wuerde gerne mal eure Meinung dazu hoeren.
Da mir Class::Data::Inheritable nicht wirklich gefallen hat (wegen der
vielen Accessor Methods) hab ich eine etwas andere Implementation versucht:
http://domm.zsi.at/source_code/modules/Class-Data-TIN-0.01.tar.gz
TIN steht uebrigens fuer Translucent Inheritable Non-polluting
Aus der Doku:
The thing I don't like with Class::Data::Inheritable or the
implementations suggested in perltootc is that you end up with lots of
accessor routines in your namespace.
Class::Data::TIN works around this "problem" by storing the Class Data
in its own namespace (mirroring the namespace and @ISA hierarchies of
the modules using it) and supplying the using packages with (at this
time) three meta-accessors called get_classdata (or just get),
set_classdata (set) and append_classdata (append). It achieves this
with some black magic (namespace munging & evaling).
--
D_OMM +----> http://domm.zsi.at <-----+
O_xyderkes | neu: Arbeitsplatz |
M_echanen | http://domm.zsi.at/d/d162.html |
M_asteuei +--------------------------------+
###
You are subscribed to vienna-pm-list as Thomas Klausner <domm at zsi.at>
http://www.fff.at/fff/vienna.pm/
More information about the Vienna-pm
mailing list