Skip to content

Commit 4c04d2e

Browse files
authored
Merge pull request #2066 from wilzbach/deprecate-traits
Document isDeprecated + mention isFuture merged-on-behalf-of: Mike Franklin <JinShil@users.noreply.github.com>
2 parents c55d309 + 2d3e714 commit 4c04d2e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

spec/grammar.dd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ $(GNAME TraitsKeyword):
470470
$(TRAITS_LINK2 isArithmetic)
471471
$(TRAITS_LINK2 isAssociativeArray)
472472
$(TRAITS_LINK2 isFinalClass)
473+
$(TRAITS_LINK2 isFuture)
474+
$(TRAITS_LINK2 isDeprecated)
473475
$(TRAITS_LINK2 isPOD)
474476
$(TRAITS_LINK2 isNested)
475477
$(TRAITS_LINK2 isFloating)

spec/traits.dd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $(GNAME TraitsKeyword):
2525
$(GBLINK isPOD)
2626
$(GBLINK isNested)
2727
$(GBLINK isFuture)
28+
$(GBLINK isDeprecated)
2829
$(GBLINK isFloating)
2930
$(GBLINK isIntegral)
3031
$(GBLINK isScalar)
@@ -201,6 +202,11 @@ $(H2 $(GNAME isFuture))
201202
marked with the `@future` keyword, otherwise `false`. Currently, only
202203
functions and variable declarations have support for the `@future` keyword.)
203204

205+
$(H2 $(GNAME isDeprecated))
206+
207+
$(P Takes one argument. It returns `true` if the argument is a symbol
208+
marked with the `deprecated` keyword, otherwise `false`.)
209+
204210
$(H2 $(GNAME isVirtualFunction))
205211

206212
$(P The same as $(GLINK isVirtualMethod), except

0 commit comments

Comments
 (0)