NULL v. zero
Posted Jul 17, 2004 4:41 UTC (Sat) by
Ross (subscriber, #4065)
In reply to:
NULL v. zero by ikm
Parent article:
NULL v. zero
Wait. I think I just understood what you mean:
char *bob=0*0;
would not compile as 0*0 is an integer expression. The implicit conversion
is only applied for a naked constant.
Then I retract my statement about the compiler not being able to warn in
some cases. But I continue to think this is rather strange for a language
that claims to be strongly typed. (For example the removal of implicit
conversions of char constants was a good thing... I wish C could shed that
"feature" as well.)
(
Log in to post comments)