On Tuesday, 29 November 2016 at 12:49:53 UTC, Stefan Koch wrote: > Define the function you want to call globally. > and not inside another function. Yes. You can also find a very detailed explanation here https://github.com/dlang/phobos/pull/4915#issuecomment-262484753.