home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / cplus / 1139 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.5 KB

  1. Xref: sparky comp.std.c++:1139 comp.lang.c++:13446
  2. Path: sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!hagbard!loglule!jbn
  3. From: jbn@lulea.trab.se (Johan Bengtsson)
  4. Newsgroups: comp.std.c++,comp.lang.c++
  5. Subject: Re: What does "::" really mean?
  6. Message-ID: <4946@holden.lulea.trab.se>
  7. Date: 9 Sep 92 19:40:25 GMT
  8. References: <1992Sep8.134341.25077@cadsun.corp.mot.com>
  9. Followup-To: comp.std.c++
  10. Organization: Telia Research AB, Aurorum 6, 951 75 Lulea, Sweden
  11. Lines: 27
  12. X-Newsreader: Tin 1.1 PL4
  13.  
  14. shang@corp.mot.com (David (Lujun) Shang) writes:
  15. : We should use:
  16. :  
  17. :     AA1::AA.NAA
  18. :  
  19. :  to denote the class NAA nested in class AA nested in class AA1, and use
  20. :  
  21. :     AA1::AA::NAA
  22. :  
  23. :  to denote the class NAA nested in the base class AA of AA1.
  24.  
  25. Since people seem to diagree what the "natural" rule is for
  26. scope order when both nesting and inheritance are considered, I'd
  27. rather keep AA1::AA::NAA for both cases, and require that these
  28. expressions be unambigous.
  29.  
  30. Even if clear rules are defined, I think it will be confusing
  31. if the same name may appear along different inheritance/nested
  32. paths.  It is (kind of) the visibility aspect of multiple inheritance
  33. applied to nesting as well.
  34.  
  35. -- 
  36. --------------------------------------------------------------------------
  37. | Johan Bengtsson, Telia Research AB, Aurorum 6, S-951 75 Lulea, Sweden  |
  38. | Johan.Bengtsson@lulea.trab.se; Voice:(+46)92075471; Fax:(+46)92075490  |
  39. --------------------------------------------------------------------------
  40.