Skip to content

Commit 0d781cc

Browse files
rikkimaxdlang-bot
authored andcommitted
Add new trait isCOMClass
1 parent a2dbd9b commit 0d781cc

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 hasPostblit, $(D hasPostblit))
@@ -1273,6 +1274,12 @@ static assert(!__traits(isPackage, std.algorithm.sorting));
12731274
---
12741275
)
12751276

1277+
$(H3 $(GNAME isCOMClass))
1278+
$(P Takes one argument. If that argument is a symbol that refers to a
1279+
$(DDSUBLINK spec/class, ClassDeclaration, class declaration) and is a COM class then $(D true) is retuned,
1280+
otherwise $(D false).
1281+
)
1282+
12761283
$(H3 $(GNAME hasMember))
12771284

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

0 commit comments

Comments
 (0)