On Tuesday, 20 September 2016 at 09:14:39 UTC, Marc Schütz wrote:
Have a look at `std.concurrency.initOnce`: https://dlang.org/phobos/std_concurrency.html#.initOnceBut you will still need to use assumePure() for calling `thisExePath`, and it might do other things that are impure...
Yes, it's near but in this case I try to fix purity, so any variants of lazy initialization is not applicable here.