Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!huxley!glenn From: glenn@huxley.huxley.bitstream.com (Glenn P. Parker) Newsgroups: comp.lang.c++ Subject: Re: Scope of return types Message-ID: Date: 4 Jan 91 19:54:32 GMT References: <1990Dec27.203259.9391@usenet@scion.CS.ORST.EDU> Sender: glenn@huxley.UUCP Reply-To: (Glenn Parker) Distribution: comp Organization: Bitstream, Inc. Lines: 14 In-reply-to: rae@alias.UUCP's message of 3 Jan 91 07:37:18 GMT In article rae@alias.UUCP (Reid Ellis) writes: > A type can never be nested inside another type. Thus statements like > the following are not legal: > >> A::Color A::x = A::black; // C++ 2.1 should like this (?) May I direct your attention to Ellis & Stroustrup: Section 9.7, entitled "Nested Class Declarations," which implies that such statements are quite legal, IMHO. Remember, this is 2.1 we're talking about, not 2.0. -- Glenn P. Parker glenn@bitstream.com Bitstream, Inc. uunet!huxley!glenn 215 First Street BIX: parker Cambridge, MA 02142-1270