statement; // comment statement; // comment |
/* * comment * comment */ statement; statement; |
/+++++ /* * comment * comment */ statement; statement; +++++/ |
int myFunc(); |
import std.c.stdio; |
Module names should be all lower case.
class Foo; class FooAndBar; |
int done(); int doneProcessing(); |
alias void VOID; alias int INT; alias int* pint; |
should be avoided.
int[] x, y; // makes it clear that x and y are the same type int** p, q; // makes it clear that p and q are the same type |
to emphasize their relationship. Do not use the C style:
int []x, y; // confusing since y is also an int[] int **p, q; // confusing since q is also an int** |