Bug in import(...) on Windows?
Andrey Zherikov
andrey.zherikov at gmail.com
Wed Sep 2 17:43:29 UTC 2020
Adding some verbosity:
pragma(msg, import("file"));
pragma(msg, buildPath(".", "file"));
pragma(msg, import(buildPath(".", "file")));
Result on Ubuntu:
=======
hello
./file
hello
=======
Result on Windows:
=======
hello
.\file
parser.d(47): Error: file ".\\file" cannot be found or not in a
path specified with -J
parser.d(47): while evaluating pragma(msg,
import(buildPath([".", "file"][])))
=======
More information about the Digitalmars-d-learn
mailing list