INVALID_HANDLE_VALUE const?
Regan Heath
regan at netmail.co.nz
Fri Jul 13 06:55:30 PDT 2007
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?
It means when you try to use it like..
class Foo
{
HANDLE bar = INVALID_HANDLE_VALUE;
}
you get an error.
Regan
More information about the Digitalmars-d
mailing list