MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Why 0 is not int* ? Error with sample of Bjarne Book




On 7 May 1998, Alexandre Oliva wrote:

> Khimenko Victor <khim@sch57.msk.ru> writes:
> 
> > A constant expression ($C.5) that evalutes to 0 can be implicitly
> > converted to any pointer or pointer to member type ($5.1.1).
> 
> Note that, in C++, `!1' is not `0', it's `false'.
> 
Yes. !1 is false but still false could be evaluted to 0. I am not really
sure who is right from standard viewpoint but simple sample from "The C++
Programming Language" (top of p835) could not be compiled with egcs :-((
This is not good...




  • Prev by Date: Re: Some basic Help
  • Next by Date: Re: a probable bug
  • Prev by thread: Re: Mathematica notebooks on web sites
  • Next by thread: RenderAll crash