Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!helios.ee.lbl.gov!pasteur!agate!darkstar!terra.ucsc.edu!daniel From: daniel@terra.ucsc.edu (Daniel Edelson) Newsgroups: comp.std.c++ Subject: Scopes and Friend declarations Keywords: scopes, friends, annotated reference, a real mess Message-ID: <5791@darkstar.ucsc.edu> Date: 6 Aug 90 22:48:29 GMT Sender: usenet@darkstar.ucsc.edu Reply-To: daniel@terra.ucsc.edu (Daniel Edelson) Organization: University of California, Santa Cruz Lines: 17 X-Local-Date: 6 Aug 90 15:48:29 PDT From the ARM, section 3.2, Scopes ``A name first declared by a friend declaration belongs to the global scope.'' From the ARM, section 11.4, Friends ``If a class or function mentioned as a friend has not been declared its name is entered in the same scope as the name of the class containing the declaration.'' Clearly these conflict, particularly in the presense of local and nested classes. Is anyone at AT&T willing to bless rule or the other? Daniel Edelson daniel@cis.ucsc.edu