mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
5 lines
294 B
Text
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.
|