[Issue 21146] No introspection information on whether a class is COM or not
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Aug 10 20:57:25 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21146
Walter Bright <bugzilla at digitalmars.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
IUnknown is declared as:
    extern(Windows)
    interface IUnknown {
        int QueryInterface(const(GUID)* riid, void** pvObject);
        uint AddRef();
        uint Release();
    }
GUID is:
  align(1) struct GUID {  // size is 16
    align(1):
    uint     Data1;
    ushort   Data2;
    ushort   Data3;
    ubyte[8] Data4;
  }
We could move these from core.sys.windows.basetyps and unknown to object.d.
Then Adam's prescription will work, without making the compiler more complex.
--
    
    
More information about the Digitalmars-d-bugs
mailing list