Skip to content

Commit

Permalink
Add new trait isCOMClass
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkimax committed Nov 26, 2024
1 parent a2dbd9b commit f74587d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/traits.dd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ $(GNAME TraitsKeyword):
$(RELATIVE_LINK2 isZeroInit, $(D isZeroInit))
$(RELATIVE_LINK2 isModule, $(D isModule))
$(RELATIVE_LINK2 isPackage, $(D isPackage))
$(RELATIVE_LINK2 isCOMClass, $(D isCOMClass))
$(RELATIVE_LINK2 hasMember, $(D hasMember))
$(RELATIVE_LINK2 hasCopyConstructor, $(D hasCopyConstructor))
$(RELATIVE_LINK2 hasPostblit, $(D hasPostblit))
Expand Down Expand Up @@ -1273,6 +1274,12 @@ static assert(!__traits(isPackage, std.algorithm.sorting));
---
)

$(H3 $(GNAME isCOMClass))
$(P Takes one argument. If that argument is a symbol that refers to a
$(DDSUBLINK spec/class, ClassDeclaration, class declaration) and is a COM class then $(D true) is retuned,
otherwise $(D false).
)

$(H3 $(GNAME hasMember))

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

0 comments on commit f74587d

Please sign in to comment.