delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/09/09:20:20

From: "Erik Anell" <pintie AT telia DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: old version's compiler class utilization...
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <0G%d4.652$al3.10409@newsc.telia.net>
Date: Sun, 09 Jan 2000 13:02:52 GMT
NNTP-Posting-Host: 62.20.145.218
X-Complaints-To: abuse AT telia DOT com
X-Trace: newsc.telia.net 947422972 62.20.145.218 (Sun, 09 Jan 2000 14:02:52 MET)
NNTP-Posting-Date: Sun, 09 Jan 2000 14:02:52 MET
Organization: Telia Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,
Is there any kind of things that are impossible to do in Rhide v 1.4
conserning classes...

Like having derived classes, like this...

class A
{
protected:
    int lots_of_vars;
    ...
public:
    A(int vars,...)
    lots_of_functions();
    ...
}
class B:public A
{
public:
    B(int vars,...):A(vars...)
}

Because when I do this they start getting compiler errors, like:

"class `main()::B´ does not have any field name named A"
    and
"no matching function for call to `main()::A::A()´"

and some errors inside class A declaration, like:

"candidates are `::main()::lifeform::lifeform(const main()::lifeform &)"

Seems strange...

Do I have to upgrade to later versions to utilize derived classes
initialization or did I do something strange?

If so, Is there any way to get only parts of Rhide, or do I have to download
that couple of houndred megs?

Thanks in advance,
Erik Anell


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019