[Issue 17963] New: Spec is incorrect about what is considered a COM interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 3 13:38:10 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17963

          Issue ID: 17963
           Summary: Spec is incorrect about what is considered a COM
                    interface
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: aliloko at gmail.com

The spec says:
"A COM interface is defined as one that derives from the interface
core.stdc.win­dows.com.IUnknown."
https://dlang.org/spec/interface.html#com-interfaces

However an interface derived from another interface named "IUnknown", whatever
its content and fully qualified name, will also be considered COM, with the
semantics restrictions.
This is very desirable since it allow to use COM interfaces with sayn @nogc
signatures, or COM without Windows.

So the spec is wrong about this, core.stdc.win­dows.com.IUnknown is not needed,
but the name "IUnknown" is.

--


More information about the Digitalmars-d-bugs mailing list