On 05/02/2012 16:13, Stewart Gordon wrote: <snip>
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? Stewart.
