Re: Calling SUPER::constructor in the constructor

2004-02-01 Thread James Edward Gray II
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

Re: Calling SUPER::constructor in the constructor

2004-02-01 Thread R. Joseph Newton
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

Re: Calling SUPER::constructor in the constructor

2004-01-22 Thread drieux
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

Re: Calling SUPER::constructor in the constructor

2004-01-22 Thread James Edward Gray II
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(@_); # .

RE: Calling SUPER::constructor in the constructor

2004-01-22 Thread Dan Muey
> 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