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
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
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
--- Giacomo Cerrai [EMAIL PROTECTED] wrote:
With accessor methods this would be considerably more verbose:
foo({param = $val,
fields = { $SomeClass-FIELDNAME1 = $val1,
$SomeClass-FIELDNAME2 = $val2,
...
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';
...
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,
...
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
--- 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