Skip to content

Commit 0c96eb6

Browse files
authored
Remove version(integer) from docs
These got removed a while ago. Didn't do for the debug() because I'm not sure about if it got removed from debug too.
1 parent 0f85081 commit 0c96eb6

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

spec/version.dd

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ $(H2 $(LNAME2 version, Version Condition))
5858

5959
$(GRAMMAR
6060
$(GNAME VersionCondition):
61-
$(D version $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
6261
$(D version $(LPAREN)) $(GLINK_LEX Identifier) $(D $(RPAREN))
6362
$(D version $(LPAREN)) $(D unittest) $(D $(RPAREN))
6463
$(D version $(LPAREN)) $(D assert) $(D $(RPAREN))
@@ -68,15 +67,14 @@ $(GNAME VersionCondition):
6867
with a single source file.
6968
)
7069

71-
$(P The $(I VersionCondition) is satisfied if the $(I IntegerLiteral)
72-
is greater than or equal to the current $(I version level),
73-
or if $(I Identifier) matches a $(I version identifier).
70+
$(P The $(I VersionCondition) is satisfied if $(I Identifier)
71+
matches a $(I version identifier).
7472
)
7573

76-
$(P The $(I version level) and $(I version identifier) can
77-
be set on the command line by the $(D -version) switch
78-
or in the module itself with a $(GLINK VersionSpecification),
79-
or they can be predefined by the compiler.
74+
$(P The $(I version identifier) can be set on the command line
75+
by the $(D -version) switch or in the module itself with a
76+
$(GLINK VersionSpecification), or they can be predefined
77+
by the compiler.
8078
)
8179

8280
$(P Version identifiers are in their own unique name space, they do
@@ -118,7 +116,6 @@ $(H2 $(LEGACY_LNAME2 VersionSpecification, version-specification, Version Specif
118116
$(GRAMMAR
119117
$(GNAME VersionSpecification):
120118
$(D version =) $(GLINK_LEX Identifier) $(D ;)
121-
$(D version =) $(GLINK_LEX IntegerLiteral) $(D ;)
122119
)
123120

124121
$(P The version specification makes it straightforward to group
@@ -194,10 +191,6 @@ class Foo
194191
)
195192

196193
------
197-
version($(CODE_HIGHLIGHT n)) // add in version code if version level is >= n
198-
{
199-
... version code ...
200-
}
201194

202195
version($(CODE_HIGHLIGHT identifier)) // add in version code if version
203196
// keyword is identifier
@@ -206,8 +199,8 @@ version($(CODE_HIGHLIGHT identifier)) // add in version code if version
206199
}
207200
------
208201

209-
$(P These are presumably set by the command line as
210-
$(D -version=n) and $(D -version=identifier).
202+
$(P This is presumably set by the command line as
203+
$(D -version=identifier).
211204
)
212205

213206

0 commit comments

Comments
 (0)