On Tue, 4 Jun 2024 06:38:36 GMT, Serguei Spitsyn <sspit...@openjdk.org> wrote:

>> The intent is to provide a definition of what a null pointer is, for both C 
>> and C++ programs. Is there a better place to do that so that elsewhere the 
>> spec can simply to refer to "a null pointer" or "null"?
>
> Thanks, David. I also feel this clarification is still useful.

I think this is the right place but it is only for return values. There are a 
few functions where a parameter value can be a null pointer, e.g. in 
GetThreadState, SuspendThread, GetOwnedMonitorInfo the thread parameter can be 
a null pointer to mean the current thread.  I don't think the introduction 
section has anywhere right now to say what a null pointer means.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19257#discussion_r1625458511

Reply via email to