INVALID_HANDLE_VALUE const?
Lionello Lunesu
lio at lunesu.remove.com
Mon Jul 16 22:57:52 PDT 2007
Regan Heath wrote:
> in std.c.windows.windows we have;
>
> final HANDLE INVALID_HANDLE_VALUE = cast(HANDLE)-1;
> const DWORD INVALID_SET_FILE_POINTER = cast(DWORD)-1;
> const DWORD INVALID_FILE_SIZE = cast(DWORD)0xFFFFFFFF;
>
> Why is INVALID_HANDLE_VALUE not const like the others?
Isn't HANDLE aliased as a void*? I guess you can't have a const (void*).
Just a guess.
L.
More information about the Digitalmars-d
mailing list