Skip to content

Commit 3f6fef2

Browse files
authored
[spec/legacy] Document edition checks (#4348)
1 parent 4312b41 commit 3f6fef2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

spec/legacy.dd

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,21 @@ $(COMMENT
1414
)
1515

1616
$(TABLE2 Legacy Features,
17-
$(THEAD Feature, Summary)
17+
$(THEAD Feature, Summary, $(DDLINK spec/editions, Editions, Edition) check)
18+
19+
$(COMMENT 2024)
1820
$(TROW $(RELATIVE_LINK2 body, `body` keyword), $(D body) after a contract statement -
19-
use $(D do) instead)
21+
use $(D do) instead, 2024)
22+
$(TROW $(RELATIVE_LINK2 alias-instance-member, Aliasing an instance member),
23+
Use `typeof(instance).member` instead, 2024)
24+
$(TROW Escaping $(DDSUBLINK spec/attribute, scope, `scope`) data,
25+
`scope` is $(LINK2 https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md,
26+
enforced) in `@safe` code, 2024)
27+
28+
$(COMMENT Not enforced yet)
2029
$(TROW `alias` target first syntax, use `alias name = target` instead.)
2130
$(TROW Struct/union postblit, use a $(DDSUBLINK spec/struct, struct-copy-constructor,
2231
copy constructor) instead.)
23-
$(TROW $(RELATIVE_LINK2 alias-instance-member, Aliasing an instance member),
24-
use `typeof(instance).member` instead.)
2532
)
2633

2734
$(H2 $(LNAME2 body, `body` keyword))

0 commit comments

Comments
 (0)