Skip to content

Commit 3494732

Browse files
rikkimaxBolpat
authored andcommitted
Add new trait isCOMClass
1 parent 0ff3263 commit 3494732

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/traits.dd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ $(GNAME TraitsKeyword):
4949
$(RELATIVE_LINK2 isZeroInit, $(D isZeroInit))
5050
$(RELATIVE_LINK2 isModule, $(D isModule))
5151
$(RELATIVE_LINK2 isPackage, $(D isPackage))
52+
$(RELATIVE_LINK2 isCOMClass, $(D isCOMClass))
5253
$(RELATIVE_LINK2 hasMember, $(D hasMember))
5354
$(RELATIVE_LINK2 hasCopyConstructor, $(D hasCopyConstructor))
5455
$(RELATIVE_LINK2 hasMoveConstructor, $(D hasMoveConstructor))
@@ -1314,6 +1315,12 @@ static assert(!__traits(isPackage, std.algorithm.sorting));
13141315
---
13151316
)
13161317

1318+
$(H3 $(GNAME isCOMClass))
1319+
$(P Takes one argument. If that argument is a symbol that refers to a
1320+
$(DDSUBLINK spec/class, ClassDeclaration, class declaration) and is a COM class then $(D true) is retuned,
1321+
otherwise $(D false).
1322+
)
1323+
13171324
$(H3 $(GNAME hasMember))
13181325

13191326
$(P The first argument is a type that has members, or

0 commit comments

Comments
 (0)