Easter Eggs
Many undocumented and/or unannounced features have appeared in releases of the DMD compiler.
- short form for function template declaration. void f(A)(A x) {...}
- DMD 0.160, discovered by Markus Dangl.
- Documented in 0.161.
- implicit array properties. int f(int[] arr) can be called as arr.f
- non-greedy regexp matching. "a*?" performs non-greedy matching of a.
- stringof. DMD 1.005. Documented but unannounced.
- __argTypes, used for 64 bit varargs. Documented only in lexer.c