www.digitalmars.com         C & C++   DMDScript  

D - Module declaration when dmd -c foo\bar.d

Module declaration of foo.bar is as follow:

1) If "dmd -offoo\bar.d -c foo\bar.d", "module foo.bar;".
2) If "cd foo; dmd -c bar.d", "module bar;".

1) is inconvenient and less portable.
I think that "module bar;" should be used in both cases.

Robert (Japanese)
Dec 12 2003