On Jan 22, 2004, at 9:13 AM, Dan Anderson wrote:
Is it possible to call the constructor that a function inherits from its[..]
parent? I tried calling SUPER:: and SUPER-> in a constructor and got
errors. Am i correct in assuming that if I rewrite the constructor that
a copy of the parent object won't be available?
did you try something like
sub new { my $type = shift; # call our parent class new to get our $self my $self = $type->SUPER::new(); .....
} cf: <http://www.wetware.com/drieux/pbl/perlTrick/OO/Object_in_Object.html>
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>