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.