RE: Calling SUPER::constructor in the constructor

From: Dan Muey (dmuey_at_infiniplex.com)
Date: 01/22/04


Date: Thu, 22 Jan 2004 11:15:44 -0600
To: "Dan Anderson" <dan@mathjunkies.com>,	"Perl Beginners" <beginners@perl.org>


> 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 example of your code. Also I can do DBI->connect(..) or DBI::connect and it works.
Why not look at that and see how DBI does it?

Sorry it's not more helpful, but without more details....

HTH

DMuey

> Thanks in advance,
>
> Dan
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>



Relevant Pages

  • Re: Is it a good way to use constructor?
    ... Sorry, I make a mistake here, I rewrite them. ... I think here exists a risk in class B constructor. ...
    (microsoft.public.vc.language)
  • Re: Calling SUPER::constructor in the constructor
    ... Am i correct in assuming that if I rewrite the constructor ... > a copy of the parent object won't be available? ...
    (perl.beginners)
  • Re: Passing Dataset to another WinForm
    ... > Hi Dan, ... Then in constructor I copy dataset to private ... >>> I don't want to recreate the SqlDataAdapter again either. ... >>> add in parameters a DataSet and SqlDataAdapter correct? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: generic with constraint of type int
    ... Check the type of T in the constructor and throw if T isn't one of the valid types? ... Clive Dixon wrote: ... You would not be able to have a constraint which restricts to only int, float, string and bool. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: System.Reflection questions...
    ... Thanks - that's how I'm currently doing it (passing a string into the ... constructor of each object, so it knows which parent object "owns" it). ...
    (microsoft.public.dotnet.general)