dmd/changelog/dmd.isCOMClass.dd
2025-02-14 08:23:16 +08:00

5 lines
294 B
Text

New trait `isCOMClass` to detect if a type is a COM class
A Component Object Model (COM) class inherits from a possibly user-defined interface named ``IUnknown``.
To detect this during compilation, use the trait ``__traits(isCOMClass, Type)``.
During runtime, use the ``TypeInfo_Class`` flag.