Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!samsung!uunet!brunix!sdm From: sdm@cs.brown.edu (Scott Meyers) Newsgroups: comp.lang.c++ Subject: Re: Simple C++ Question Message-ID: <45882@brunix.UUCP> Date: 26 Jul 90 13:49:58 GMT References: <155@srchtec.UUCP> Sender: news@brunix.UUCP Reply-To: sdm@cs.brown.edu (Scott Meyers) Distribution: usa Organization: Brown University Department of Computer Science Lines: 29 In article <155@srchtec.UUCP> johnb@srchtec.UUCP (John Baldwin) writes: > > static class Widget { > . > . // data and member functions here > . > }; > >We have checked Lippman's book, the Stroustrup text, and Hansen's "answer >book" to no avail. Please forgive me asking this on the net, but what does >it do?? From the E&S ARM (that should make everybody happy), p. 98: The static and extern specifiers can be applied only to names of objects and functions. In particular, static class X { // error int a; // ... }; is illegal. Interestingly, both cfront and g++ accept this kind of thing without complaining. Which brings us back to the original question, actually: given that it's illegal but accepted, what does it do? Scott