This shouldn't happen

Stewart Gordon smjg_1998 at yahoo.com
Sat Apr 28 04:51:43 PDT 2012


On 25/04/2012 21:28, Andrej Mitrovic wrote:
<snip>
> This works well I think:
> struct HWND { }

If it does, it shouldn't, because that struct is of the wrong size.

Windows handles are, AIUI, always of the platform pointer size.  A zero-size handle type 
would be useless, as only one distinct handle could exist that way.

Stewart.


More information about the Digitalmars-d mailing list