home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1842 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.0 KB  |  56 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nokia.fi!tele.nokia!girod
  3. From: girod@tele.nokia.fi (Marc Girod)
  4. Subject: Re: Ambiguity in member pointer declaration
  5. In-Reply-To: pnori@lsi-j.co.jp's message of 16 Dec 92 04:21:18 GMT
  6. Message-ID: <GIROD.92Dec18142728@node_262d6.tele.nokia.fi>
  7. Sender: usenet@noknic.nokia.fi (USENET at noknic)
  8. Nntp-Posting-Host: rat.ts.tele.nokia.fi
  9. Reply-To: marc.girod@ntc.nokia.com
  10. Organization: kpd
  11. References: <PNORI.92Dec14161301@hyperion.lsi-j.co.jp>
  12.     <1992Dec15.011359.17235@lucid.com>
  13.     <PNORI.92Dec16132118@hyperion.lsi-j.co.jp>
  14. Date: Fri, 18 Dec 1992 12:27:28 GMT
  15. Lines: 39
  16.  
  17. >>>>> On 16 Dec 92 04:21:18 GMT, pnori@lsi-j.co.jp (Pochi NORIMATSU) said:
  18. pnori> In article <1992Dec15.011359.17235@lucid.com> jss@lucid.com (Jerry Schwarz) writes:
  19. jss> The grammar
  20. jss> doesn't contain any rules that derive a declarator starting with "::".
  21. jss> And that omission is deliberate.
  22.  
  23. pnori> But in ARM section 8.2.3, it says that the declarator representing a
  24. pnori> pointer to members has the form
  25.  
  26. pnori>     complete-class-name :: * cv-qualifier-list<opt> D1
  27.  
  28. pnori> And complete-class-name can start with ::. Or is it typo?
  29.  
  30. Do you have a version of the ARM different than mine (1990, 
  31. ISBN 0-201-51459-1...)?
  32.  
  33. In my book it reads in section 8.2.3, p 135:
  34.  
  35.     class-name :: * cv-qualifier-list<opt> D1
  36.  
  37. and class-name is just identifier (17.1 p 387)
  38.  
  39. when (p 392)
  40.     complete-class-name:
  41.         qualified-class-name
  42.         :: qualified-class-name
  43.  
  44. and
  45.     qualified-class-name:
  46.         typedef-name
  47.         class-name :: qualified-class-name
  48.  
  49. --
  50. +-----------------------------------------------------------------------------+
  51. | Marc Girod - Nokia Telecommunications       Phone: +358-0-511 7703          |
  52. | TL4E - P.O. Box 12                            Fax: +358-0-511 7432          |
  53. | SF-02611 Espoo 61 - Finland              Internet: marc.girod@ntc.nokia.com |
  54. |    X.400: C=FI, A=Elisa, P=Nokia Telecom, UNIT=TRS, SUR=Girod, GIV=Marc     |
  55. +-----------------------------------------------------------------------------+
  56.