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 01:31:56 UTC 2019
On Monday, 11 February 2019 at 01:05:05 UTC, kdevel wrote:
> On Monday, 11 February 2019 at 00:54:27 UTC, Seb wrote:
>> On Monday, 11 February 2019 at 00:19:02 UTC, kdevel wrote:
>
> [...]
>
>> You can't read or list files at compile-time.
>
> dmd can read files at compile time using the import function [1]
Sorry, I should have rephrased: you can't call any OS-level
functions at compile-time. This includes std.file.read and
std.file.dirEntries.
More information about the Digitalmars-d-learn
mailing list