Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Jonathan Rockway
nntp.perl.org wrote: Hello all. I've written a module to deal with the issue of inheritable class data (yes, yet another one). What's peculiar with it is that it doesn't rely on accessor methods. After declaration, you can use the variables just like any other package variable but you can

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Ovid
Oops. Sent privately instead of to the list. Resending. --- nntp.perl.org [EMAIL PROTECTED] wrote: I've written a module to deal with the issue of inheritable class data (yes, yet another one). What's peculiar with it is that it doesn't rely on accessor methods. After declaration, you can

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Giacomo Cerrai
Jonathan Rockway ha scritto: nntp.perl.org wrote: Hello all. I've written a module to deal with the issue of inheritable class data (yes, yet another one). What's peculiar with it is that it doesn't rely on accessor methods. After declaration, you can use the variables just like any other

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Ovid
--- Giacomo Cerrai [EMAIL PROTECTED] wrote: With accessor methods this would be considerably more verbose: foo({param = $val, fields = { $SomeClass-FIELDNAME1 = $val1, $SomeClass-FIELDNAME2 = $val2, ...

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Bill Ward
On 9/4/07, Giacomo Cerrai [EMAIL PROTECTED] wrote: A typical case I feel the need for that is when you have a hierarchy of classes where you deal with a lot of data fields and you name them with class data members: our FIELDNAME1 = 'field1'; our FIELDNAME2 = 'field2'; ...

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Giacomo Cerrai
Ovid ha scritto: --- Giacomo Cerrai [EMAIL PROTECTED] wrote: With accessor methods this would be considerably more verbose: foo({param = $val, fields = { $SomeClass-FIELDNAME1 = $val1, $SomeClass-FIELDNAME2 = $val2, ...

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread nadim khemir
nntp.perl.org wrote: Hello all. I've written a module to deal with the issue of inheritable class data (yes, yet another one). What's peculiar with it is that it doesn't rely on accessor methods. After declaration, you can use the variables just like any other package variable but you

Re: Module Proposal: Package::Data::Inheritable

2007-09-04 Thread Ovid
--- Giacomo Cerrai [EMAIL PROTECTED] wrote: Just one note. It's not clear from my post, I should have put a 'package SomeClass' or $self-foo but the code above is in-class code, not meant as client code (although you cannot prevent that). Ah, this is for internal use only? OK then. The