WindowsAPI - Problem with DECLARE_HANDLE definition

Kagamin spam at here.lot
Thu Sep 19 00:53:02 PDT 2013


On Wednesday, 11 September 2013 at 18:29:09 UTC, Andrej Mitrovic 
wrote:
> On 9/11/13, Kagamin <spam at here.lot> wrote:
>> I'd say, strong handles shouldn't act as pointers (and 
>> shouldn't
>> contain pointers), so null shouldn't work.
>
> "NULL" is already used in a ton of WinAPI C/C++ code and MSDN
> documentation, it would be a major pain in the ass to have to 
> use e.g.
> HWND(0) instead.

In my experience writing a winapi call already takes some effort 
and specifying HANDLE(0) instead of NULL doesn't add any 
comparable difficulty.


More information about the Digitalmars-d mailing list