dirEntries within static foreach: memory.d(827): Error: fakePureErrno cannot be interpreted at compile time, because it has no available source code

Seb seb at wilzba.ch
Mon Feb 11 00:54:27 UTC 2019


On Monday, 11 February 2019 at 00:19:02 UTC, kdevel wrote:
> I am trying to get this code compiled:
>
> ```TemplateStore.d
> module TemplateStore;
> import std.path;
> import std.conv;
> import std.file;
>
> [...]

You can't read or list files at compile-time. What are you trying 
to do?


More information about the Digitalmars-d-learn mailing list