Bug 17963 – Spec is incorrect about what is considered a COM interface

Status
NEW
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-11-03T13:38:10Z
Last change time
2024-12-15T15:24:25Z
Assigned to
No Owner
Creator
ponce
Moved to GitHub: dlang.org#4072 →

Comments

Comment #0 by aliloko — 2017-11-03T13:38:10Z
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.
Comment #1 by robert.schadek — 2024-12-15T15:24:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4072 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB