@@ -58,7 +58,6 @@ $(H2 $(LNAME2 version, Version Condition))
58
58
59
59
$(GRAMMAR
60
60
$(GNAME VersionCondition):
61
- $(D version $(LPAREN)) $(GLINK_LEX IntegerLiteral) $(D $(RPAREN))
62
61
$(D version $(LPAREN)) $(GLINK_LEX Identifier) $(D $(RPAREN))
63
62
$(D version $(LPAREN)) $(D unittest) $(D $(RPAREN))
64
63
$(D version $(LPAREN)) $(D assert) $(D $(RPAREN))
@@ -68,15 +67,14 @@ $(GNAME VersionCondition):
68
67
with a single source file.
69
68
)
70
69
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).
74
72
)
75
73
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.
80
78
)
81
79
82
80
$(P Version identifiers are in their own unique name space, they do
@@ -118,7 +116,6 @@ $(H2 $(LEGACY_LNAME2 VersionSpecification, version-specification, Version Specif
118
116
$(GRAMMAR
119
117
$(GNAME VersionSpecification):
120
118
$(D version =) $(GLINK_LEX Identifier) $(D ;)
121
- $(D version =) $(GLINK_LEX IntegerLiteral) $(D ;)
122
119
)
123
120
124
121
$(P The version specification makes it straightforward to group
@@ -194,10 +191,6 @@ class Foo
194
191
)
195
192
196
193
------
197
- version($(CODE_HIGHLIGHT n)) // add in version code if version level is >= n
198
- {
199
- ... version code ...
200
- }
201
194
202
195
version($(CODE_HIGHLIGHT identifier)) // add in version code if version
203
196
// keyword is identifier
@@ -206,8 +199,8 @@ version($(CODE_HIGHLIGHT identifier)) // add in version code if version
206
199
}
207
200
------
208
201
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).
211
204
)
212
205
213
206
0 commit comments