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


Michael Matz <matz@suse.de> writes:

| > I also thought that stylistically C++ programmers would generally be
| > more careful about including casts and would expect to need them here.
| 
| You couldn't be more wrong I fear.  The casual C++ programmer (and for
| that matter C programmer) knows absolutely nothing about the difference of
| a null pointer constant and a null pointer.  And even less of them know
| that NULL in C++ is only a null pointer constant.

The issue is so that it triggered an extension (for C++0x) to consider
nullptr 

   http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1488.pdf

At least that gives an idea about what (some) C++ programmers think
the null pointer is written.


-- Gaby


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