SPUG:Object property question
Michael R. Wolf
MichaelRunningWolf at att.net
Sun May 4 19:06:51 CDT 2003
Sanford Morton <smorton at pobox.com> writes:
> Yes, you're right of course. To incorporate a constructor init
> method, which I like, it ought to have been
>
> sub new {
> my $class = shift;
> my $self = {};
> bless $self, $class;
> $self->_init (@_);
BTW -- I like this as an idiom!!! Separate creation from
initialization.
> return $self;
> }
--
Michael R. Wolf
All mammals learn by playing!
MichaelRunningWolf at att.net
More information about the spug-list
mailing list