home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.std.c++:1139 comp.lang.c++:13446
- Path: sparky!uunet!pipex!unipalm!uknet!mcsun!sunic!hagbard!loglule!jbn
- From: jbn@lulea.trab.se (Johan Bengtsson)
- Newsgroups: comp.std.c++,comp.lang.c++
- Subject: Re: What does "::" really mean?
- Message-ID: <4946@holden.lulea.trab.se>
- Date: 9 Sep 92 19:40:25 GMT
- References: <1992Sep8.134341.25077@cadsun.corp.mot.com>
- Followup-To: comp.std.c++
- Organization: Telia Research AB, Aurorum 6, 951 75 Lulea, Sweden
- Lines: 27
- X-Newsreader: Tin 1.1 PL4
-
- shang@corp.mot.com (David (Lujun) Shang) writes:
- :
- : We should use:
- :
- : AA1::AA.NAA
- :
- : to denote the class NAA nested in class AA nested in class AA1, and use
- :
- : AA1::AA::NAA
- :
- : to denote the class NAA nested in the base class AA of AA1.
-
- Since people seem to diagree what the "natural" rule is for
- scope order when both nesting and inheritance are considered, I'd
- rather keep AA1::AA::NAA for both cases, and require that these
- expressions be unambigous.
-
- Even if clear rules are defined, I think it will be confusing
- if the same name may appear along different inheritance/nested
- paths. It is (kind of) the visibility aspect of multiple inheritance
- applied to nesting as well.
-
- --
- --------------------------------------------------------------------------
- | Johan Bengtsson, Telia Research AB, Aurorum 6, S-951 75 Lulea, Sweden |
- | Johan.Bengtsson@lulea.trab.se; Voice:(+46)92075471; Fax:(+46)92075490 |
- --------------------------------------------------------------------------
-