From 2516346691984262553
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f1dec9ce20a9c98f
X-Google-Attributes: gidf78e5,public
From: bs@research.att.com (Bjarne Stroustrup)
Subject: Re: null pointers (was: Why's of C++ -- Part 1)
Date: 1999/08/13
Message-ID: <FGFEGB.1Er@research.att.com>#1/1
X-Deja-AN: 512444769
X-Nntp-Posting-Host: raptor.research.att.com
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <7opqvm$vpa$1@news.hal-pc.org> <7p0mu0$36f$1@mulga.cs.mu.OZ.AU> <FGEw80.FB0@research.att.com> <t7g11n4n39.fsf@calumny.jyacc.com>
X-UID: 0000000003
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: AT&T Labs, Florham Park, NJ
Mime-Version: 1.0
Newsgroups: comp.std.c++
Originator: clamage@taumet


rom: Hyman Rosen <hymie@prolifics.com> writes

> bs@research.att.com (Bjarne Stroustrup) writes:
> >       char c;
> >       char* pc = &c;
> >       void* pv = pc;  // legal C, not legal C++
> >       int* pi = pv;
> >       int i = *pi;
> 
> You mean this, of course -
> 
>         void* pv = pc;
>        int* pi = pv;   // legal C, not legal C++

Yes. Of course (oops!). Thanks.

	- Bjarne
Bjarne Stroustrup - http://www.research.att.com/~bs




[ 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              ]




