The Win32 HANDLE type under D2

Stewart Gordon smjg_1998 at
Sun Feb 5 09:45:21 PST 2012

On 05/02/2012 16:13, Stewart Gordon wrote:
> but found that it allows implicit conversions between all handle types, not just up the
> hierarchy. Is this a bug?

I was wrong - it doesn't allow an arbitrary handle to be passed to a function accepting a 
specific handle type, but it does allow arbitrary assignment between them.  Defining an 
opAssign in the struct deals with the latter issue.

Anyway, what do you think of my idea?  Should it be put into the Win32 bindings?  Or would 
doing so break too much existing code?

Or should we wait until we have a library typedef and use that?


More information about the Digitalmars-d mailing list