Skip to content

Commit 1ef78cb

Browse files
authored
Add warning for -betterC as somethings that may be expected to work will not (#4201)
1 parent da7fa7a commit 1ef78cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/betterc.dd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ $(HEADERNAV_TOC)
77
$(P BetterC is a subset of D that doesn't depend on the D runtime library, only the C runtime library.
88
)
99

10+
$(P $(RED Warning:) While the D runtime library and standard library are not linked in,
11+
it is still possible to import several packages (``core.*`` and ``std.*``) and use some templates, types and function declarations without bodies.
12+
However, these libraries were not written for BetterC, so you will need to determine which symbols may be used.
13+
Expect cryptic compiler or linker errors.
14+
)
15+
1016
$(H2 $(LNAME2 linking, Linking))
1117

1218
$(P It is straightforward to link C functions and libraries into D programs.

0 commit comments

Comments
 (0)