From 2981735355804882844
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,53d56717e82ab663
X-Google-Attributes: gidf78e5,public
From: Barry Margolin <barmar@genuity.net>
Subject: Re: cout << null pointers
Date: 2000/07/14
Message-ID: <6lnb5.22$BL6.839@burlma1-snr2>#1/1
X-Deja-AN: 646124002
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
References: <39656D42.E049FCAA@ix.netcom.com> <396DFE0F.E1F0D885@myview.de>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 963533359 mail2news:13517 mail2news mail2news.demon.co.uk
Organization: Genuity, Cambridge, MA
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Copies-To: never
NNTP-Posting-Date: Thu, 13 Jul 2000 17:52:02 GMT
Newsgroups: comp.std.c++

In article <396DFE0F.E1F0D885@myview.de>,
Robert Klemme  <robert.klemme@myview.de> wrote:
>
>
>Paul Meyerholtz schrieb:
>> 
>> I have found an inconsistent output by various compilers of the following:
>> 
>> char * p = 0;
>> cout * q = "";
>
>nobody seemed to complain about this line of code.  what the heck is
>type 'cout'?  is this really the code you provided the compiler with?

It's obviously a type for:

   char * q = "";

If the other respondents noticed it, they didn't bother commenting on it
and just assumed the intended declaration.  It's certainly clear from the
context that this is what was intended.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




