home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!fub!einoed!mdt
- From: mdt@einoed.in-berlin.de (Michael Dietrich)
- Subject: equal names
- Message-ID: <1992Sep10.181157.10122@einoed.in-berlin.de>
- Summary: error with borlandc and equal names
- Keywords: names borlandc
- Organization: Einoed Unix & Netzwerke, Berlin (FRG)
- Distribution: comp
- Date: Thu, 10 Sep 1992 18:11:57 GMT
- Lines: 30
-
- i had problems with borlandc++ 3.0 in the following case:
-
- class X {
- .
- .
- };
-
- class Y {
- Y(X*);
- void X(void );
- };
-
- Y::Y(X* pX)
- // ^ borlandc error: "missing '('"
- {
- }
-
- void Y::X()
- {
- }
-
- borlandc seems to have a problem with the memberfunction with the same name
- as a class in the same scope.
- other compilers had no problems with that code. for now i renamed X() but:
- ist borlandc wrong or the other (zortech msc7) compilers?
-
- please reply via email
- Michael Dietrich, mdt@einoed.in-berlin.de
- --
- Michael Dietrich, mdt@einoed.in-berlin.de
-