NULL v. zero
Posted Jul 15, 2004 19:40 UTC (Thu) by
Ross (subscriber, #4065)
In reply to:
NULL v. zero by ikm
Parent article:
NULL v. zero
Is it not strange for the language to use the lhs to determine how to
evaluate the rhs? This always bothered me about C++. For example:
int bob;
void *nancy;
bob = NULL*NULL; // NULL is an integer here but a warning would be nicer
nancy = NULL*5; // So you say NULL is a pointer here but I don't actually believe it
(
Log in to post comments)