This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ patch] accept __null as sentinel


FWIW, Michael, I agree that allowing NULL (and thus __null) to be used
as a valid sentinal is the only way this will practically be useful to
real code.

No matter what the C++ standard might say, there are too many people
that expect C++ to work like C (and vice-versa).  Thus sizeof(NULL)
must equal sizeof(void *), and woe to the poor sod that thinks they
can deploy an abi that passes pointers and integers in different
places --- at least wrt stdargs.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]