R
Richard Bos
Christian Bau said:You could do us all a favour and tell us what is missing.
I don't think so. First of all because there is no definitive list, and
the normative text is quite simple to understand: _whenever_ a null
pointer constant appears in a pointer context, no matter whether there
is an explicit mention of it elsewhere in the Standard as well, it is
translated to a null pointer. That's all. Really, that's the whole
story. No list need be involved.
And the second reason is that if I now give a list of what I think are
all mentions of pointer contexts in the Standard, I am clearly
guaranteed to miss one. Hah.
But I'll mention one that you did miss: an explicit cast. Which is what
caused all this discussion.
Of course they are. The Standard defines operators, and then under
"Constraints" it gives a list of all the operand combinations that are
allowed.
Yes. Thus demonstrating nicely why grep is no substitute for reading the
Standard yourself.
Richard