Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!tektronix!tekcrl!tekchips!danw From: danw@tekchips.LABS.TEK.COM (Daniel E. Wilson) Newsgroups: comp.lang.c++ Subject: Re: Are Class Decl.'s Legal in Funcs ? Message-ID: <3817@tekcrl.LABS.TEK.COM> Date: 6 Apr 89 20:26:24 GMT References: <890403-150348-4532@Xerox> <9418@claris.com> <667@oresoft.uu.net> Sender: ftp@tekcrl.LABS.TEK.COM Lines: 11 In article <667@oresoft.uu.net>, dan@oresoft.uu.net (Daniel Elbaum) writes: > A declaration of a class in C++ is similar to a declaration of a struture > in C. The template may be declared and used in any block, and the scope > of the template definition is the block within which it is defined. The > same is true for any data type. C certainly has nested scoping. A structure or class nested in a sturcture or a class will have a global scope in C++. Yes, this is very annoying and unexpected since it differs from what C does. Unless the language has been changed recently. Dan Wilson