On Feb 1, 2004, at 1:10 AM, R. Joseph Newton wrote:
To answer your immediate
question, there is a way to call functions of the parent, but with
another
step in indeirection:
$child_class->SUPER->new.
You should rarely need this though. Any attributes [ie hash members]
of the
parent class that
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?
If yo
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 w
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(@_);
# .
> 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?
>
Perhaps some exam