You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not an expert in Win32 programming, but I don't think that conversions between these three types are so pervasive (and without consequence) as to necessitate using synonyms here rather than something which protects the programmer a little more. If this is required, it would be great to document the declarations with this information, if not then perhaps there could be a major version update replacing the synonyms.
The same thing could probably be said for any of the other type synonyms of HANDLE in Win32.
The text was updated successfully, but these errors were encountered:
I was surprised to find that these aren't the definitions for
HWND
andHANDLE
newtype HWND = HWND { unsafeHWNDToHANDLE :: HANDLE }
newtype HANDLE = HANDLE { unsafeHANDLEToPtr :: Ptr () }
I'm not an expert in Win32 programming, but I don't think that conversions between these three types are so pervasive (and without consequence) as to necessitate using synonyms here rather than something which protects the programmer a little more. If this is required, it would be great to document the declarations with this information, if not then perhaps there could be a major version update replacing the synonyms.
The same thing could probably be said for any of the other type synonyms of
HANDLE
inWin32
.The text was updated successfully, but these errors were encountered: