On Jan 22, 2004, at 11:13 AM, Dan Anderson wrote:

Is it possible to call the constructor that a function inherits from its
parent?

Yes.


I tried calling SUPER:: and SUPER-> in a constructor and got
errors.

sub new { my $class = shift; my $self = $class->SUPER::new(@_);

        # ...
}

Am i correct in assuming that if I rewrite the constructor that
a copy of the parent object won't be available?

Yes.


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to