[Petal] [PATCH] Options via constructor rather than package globals

Steve Purkis spurkis at mkdoc.com
Thu Jun 5 15:54:57 BST 2003


On Thursday, June 5, 2003, at 02:32  pm, Steve Purkis wrote:

> On Thursday, June 5, 2003, at 11:01  am, Jean-Michel Hiver wrote:
>
>> Until there is a popular CPAN 'base class' that does anything you'd 
>> want
>> in a base class (constructors, initialization, popular methods...) 
>> then
>> I'd prefer to stick with implementing a constructor each time.
>>
>> Maybe Petal objects should inherit from Class::Base?
>
> I doubt a popular CPAN base class will happen - TMTOWTDI. (but see (1) 
> above :).

Colour me wrong - Class::Base does look like one such module.

Even still, I'd go with Petal::Object or Petal::Base and make it 
inherits from Class::Base to begin with.  Just on the off-chance that I 
may want to stick something in there or change it a somewhere down the 
line...

-Steve



More information about the Petal mailing list