1 dmd comment /* comment block */
2 dmd comment // single-line comment
3 dmd code int main(char[][] args)
5 dmd code int w_total; // a comment and code on the same line
7 dmd comment /+ begin a nestable comment block
8 dmd comment /* this comment is nested within another */
9 dmd comment this_code_is_commented_out();
12 dmd comment /* when inside a c-style block comment, /+ does not start a nested comment */
13 dmd code this_line_is_code();
15 dmd comment // when inside a line comment, /+ does not start a nested comment
16 dmd code this_line_is_also_code();
18 dmd comment /+ when inside a nestable comment, /+ does begin a nested comment
19 dmd comment now we close the inner comment +/
20 dmd comment This line is still part of the outer comment
21 dmd comment now we close the outer comment +/
23 dmd code x = `when inside a backtick string, /+ does not begin a nested comment`;
24 dmd code y = `when inside a backtick string, /* does not begin a nested comment`;
25 dmd code z = `when inside a backtick string, // does not begin a nested comment`;