Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!decwrl!bacchus.pa.dec.com!shlump.nac.dec.com!labc.enet.dec.com!wallis From: wallis@labc.enet.dec.com (Barry L. Wallis) Newsgroups: comp.lang.c++ Subject: Re: Simple C++ Question Summary: A little sarcasm Message-ID: <13991@shlump.nac.dec.com> Date: 27 Jul 90 15:53:31 GMT Sender: newsdaemon@shlump.nac.dec.com Distribution: usa Organization: Digital Equipment Corporation Lines: 29 In article <45882@brunix.UUCP>, sdm@cs.brown.edu (Scott Meyers) writes... // Original question by John Baldwin omitted ; ;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? ; It can do anything it darn well pleases ;-), so use it at your own risk. --- Barry L. Wallis USENET: wallis@labc.dec.com Database Consultant "Everything is an object except this which U.S. DECtp Resource Center is a pointer." Los Angeles, CA No one voted for me, I represent myself ---