From 9163228221985845052
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,b5c0527fadfb5f46
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,b5c0527fadfb5f46
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-12-01 18:42:20 PST
Xref: sparky comp.lang.c++:17245 comp.std.c++:1658
Newsgroups: comp.lang.c++,comp.std.c++
Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!cbnewsc!cbfsb!att-out!walter!qualcom.qualcomm.com!qualcom.qualcomm.com!greg
From: greg@qualcom.qualcomm.com (Greg Noel)
Subject: Re: Is this legal C++?
Message-ID: <1992Dec2.020507.14520@qualcomm.com>
Followup-To: comp.lang.c++
Sender: news@qualcomm.com
Nntp-Posting-Host: qualcom.qualcomm.com
Organization: Qualcomm, Inc., San Diego, CA
References: <1992Dec1.234709.5823@qualcomm.com>
Date: Wed, 2 Dec 1992 02:05:07 GMT
Lines: 20

In article <1992Dec1.234709.5823@qualcomm.com> I wrote:
>	class Bar
>	{
>		friend class T;
>		class T *t = 0;
			  ^^^^	OOPS!
>	};

In private e-mail, Steven Parkes has pointed out that this is not permitted
in standard C++.  Since that was not the point of the posting, please ignore
that part.  Sorry!

G++ does seem to permit this as an extension, but I don't have any of the
documentation for G++, so I don't know how it works, except emperically.
If anyone can tell me where to get this documentation, I'd appreciate it.
(If you do, please use e-mail or change the subject thread.  Thanks.)

Followups are again directed to comp.lang.c++.
-- 
-- Greg Noel, Unix Guru         greg@qualcomm.com  or  greg@noel.cts.com


