Andrej Mitrovic: > std.path is supposed to work on strings, it doesn't touch std.file at all. > Why can't it run at compile time?
Most of Phobos is written in D, and D distributions contain full source code, so in similar cases you just need to take a look at the sources of Phobos and do some experiments to locate the problem. It seems your problem is caused by a CTFE bug, I will file it in bugzilla: int foo(int x, int y, int[] more...) { return 0; } enum r = foo(0, 0); void main() {} Bye, bearophile