Last update April 17, 2012

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) {...}
  • 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

FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: April 17, 2012 10:32 (diff))