Path: utzoo!attcan!uunet!mcsun!ukc!dcl-cs!aber-cs!pcg From: pcg@aber-cs.UUCP (Piercarlo Grandi) Newsgroups: comp.lang.c++ Subject: Re: Scoping bug??? Summary: Things are more complicated than this... Message-ID: <1730@aber-cs.UUCP> Date: 13 Apr 90 15:11:07 GMT Reply-To: pcg@cs.aber.ac.uk (Piercarlo Grandi) Organization: Dept of CS, UCW Aberystwyth (Disclaimer: my statements are purely personal) Lines: 15 In article <1729@aber-cs.UUCP> pcg@cs.aber.ac.uk (Piercarlo Grandi) writes: In C++ it has always been true that the scope of a class name is always global, modulo redeclarations in inner scopes. In C++ 2.0 the issue of local scope class definitions has been clarified, in particular with reference to the problem of member functions defined within the local class definition. I realized that I have not been explicit about splitting hairs finely enough; all this is somewhat different across the cases of class local to a class, to a function, whether you are talking 1.2 or 2.0 or later (hints of revisions), and whether you use G++ or cfront or some other compiler. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk