home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13484 < prev    next >
Encoding:
Text File  |  1992-09-10  |  982 b   |  43 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!fub!einoed!mdt
  3. From: mdt@einoed.in-berlin.de (Michael Dietrich)
  4. Subject: equal names
  5. Message-ID: <1992Sep10.181157.10122@einoed.in-berlin.de>
  6. Summary: error with borlandc and equal names
  7. Keywords: names borlandc 
  8. Organization: Einoed Unix & Netzwerke, Berlin (FRG)
  9. Distribution: comp
  10. Date: Thu, 10 Sep 1992 18:11:57 GMT
  11. Lines: 30
  12.  
  13. i had problems with borlandc++ 3.0 in the following case:
  14.  
  15. class X {
  16.     .
  17.     .
  18. };
  19.  
  20. class Y {
  21.     Y(X*);
  22.     void X(void );
  23. };
  24.  
  25. Y::Y(X* pX)
  26. //    ^ borlandc error: "missing '('"
  27. {
  28. }
  29.  
  30. void Y::X()
  31. {
  32. }
  33.  
  34. borlandc seems to have a problem with the memberfunction with the same name
  35. as a class in the same scope.
  36. other compilers had no problems with that code. for now i renamed X() but:
  37. ist borlandc wrong or the other (zortech msc7) compilers?
  38.  
  39. please reply via email
  40. Michael Dietrich, mdt@einoed.in-berlin.de
  41. -- 
  42. Michael Dietrich, mdt@einoed.in-berlin.de
  43.