On Thursday 21 April 2005 5:23 am, Matthias Hopf wrote:
const void * NULL = 0; Then, the C++ NULL constant is a true pointer with a value of 0. const int NULL = 0 is somewhat problematical in a 64-bit environment, since pointers are 64-bits. But, since C++ is fully prototyped, it will be widened appropriately.
Not on stdarg variable argument lists, if the underlying function expects a pointer. stdarg variables lists are C not C++, although C++ does allow them because C requires them. But, you are correct, in a variable length argument list (eg. prototyped with ...), the implementation is not required to widen and int.
--
Jerry Feldman