On Thursday 21 April 2005 11:23, 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.
I guess Bjarne recommends the 'const int NULL = 0' definition purely for C backward compatibility. In C++ it would seem that the 'const void * NULL = 0' definition would be a good thing as opposed to the literal '0' which Bjarne is recommending. Michael ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________