On Sat, 30 Dec 2000, Matt Sergeant wrote:

> > Another minor issue is that Apache::Request is not trivially subclassed,
> > the returned value from $self->SUPER::new() must be reblessed into the
> > desired class.
>
> Thats a pretty standard perl idiom:
>
> sub new {
>   my $class = shift;
>   my $self = $class->SUPER::new;
>   bless $self, $class;
> }

Well, a package is generally expected to bless its objects into the value
of $class, not the value of __PACKAGE__.  You shouldn't have to override
the constructor simply to rebless the object.


-dave

/*==================
www.urth.org
We await the New Sun
==================*/

Reply via email to