thisExePath purity
crimaniak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 20 12:19:14 PDT 2016
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#.initOnce
>
> But 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.
More information about the Digitalmars-d-learn
mailing list