This trick and its use-case should IMO be put in the dlang.org docs.