Skip to content

Commit 71b3b0b

Browse files
authored
Merge pull request #3655 from WalterBright/legacy
add spec/legacy page
2 parents 8f75bd9 + e6bf4df commit 71b3b0b

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

spec/glossary.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,6 @@ void test()
275275
)
276276

277277
Macros:
278-
CHAPTER=43
278+
CHAPTER=44
279279
TITLE=Glossary
280280
D=<span class="d_inlinecode">$0</span>

spec/legacy.dd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Ddoc
2+
3+
$(SPEC_S Legacy Code,
4+
5+
$(HEADERNAV_TOC)
6+
7+
$(P To maintain compatibility with older D code, many legacy features remain supported.
8+
If the $(TT -wo) compiler command line switch is used, the compiler will give warning messages
9+
for each use of a legacy feature.
10+
This page describes each legacy feature that is supported, with a suggestion of how to
11+
modernize the code.
12+
)
13+
14+
)
15+
16+
Macros:
17+
CHAPTER=45
18+
TITLE=Legacy Code
19+
D=<span class="d_inlinecode">$0</span>

spec/spec.dd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ $(TOC Table of Contents,
5555
$(A betterc.html, Better C),
5656
$(A importc.html, Import C),
5757
$(A ob.html, Live Functions),
58-
$(A windows.html, Windows Programming)
58+
$(A windows.html, Windows Programming),
59+
$(A glossary.html, Glossary),
60+
$(A legacy.html, Legacy Code)
5961
))
6062
)
6163

spec/spec.ddoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ $(SUBNAV_TEMPLATE
106106
$(ROOT_DIR)spec/betterc.html, Better C,
107107
$(ROOT_DIR)spec/importc.html, ImportC,
108108
$(ROOT_DIR)spec/ob.html, Live Functions,
109-
$(ROOT_DIR)spec/glossary.html, Glossary
109+
$(ROOT_DIR)spec/windows.html, Windows Programming,
110+
$(ROOT_DIR)spec/glossary.html, Glossary,
111+
$(ROOT_DIR)spec/legacy.html, Legacy Code
110112
)
111113
)
112114
)

0 commit comments

Comments
 (0)