import("dir/file") does not work
Atila Neves via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 17 23:47:08 PDT 2016
On Wednesday, 18 May 2016 at 05:11:51 UTC, Vadim Lopatin wrote:
> Hello,
>
> Is it intended that import of file as array does not work if
> path is specified for import file name?
>
> import("dir/file.ext"); // does not work
> import("file.ext"); // works if dir is added to -J list
>
> I believe it would be convenient if I could just specify one -J
> path (e.g. -Jviews) and import any file from nested directories
> just by providing relative path from one of -J dirs.
>
> (checked on latest DMD under Windows; replacing / with \\ does
> not help)
>
>
> Best regards,
> Vadim
That was a bug that was recently fixed.
Atila
More information about the Digitalmars-d-learn
mailing list