import/modules
marksibly
blitzmunter at gmail.com
Thu Jun 24 17:13:28 PDT 2010
Hi,
D newbie here with a few import/module related questions.
I have a test project with the following dir/file layout:
c:\test.d
c:\testmod\test2.d
The modules reference each other via imports (very nice!) and it all
compiles fine as long as I specify both modules on the dmd command
line, eg:
c:\> dmd test.d testmod\test2.d
But I can't get '-I' to do this for me, eg:
c:\> dmd -Ic:\ test.d
...doesn't work - can't find the second module.
What am I doing wrong? Or is this just the way it works? If so, what
does -I actually do?
I also notice that you seem to be able to call packages/modules
anything you want!
The docs state that package names=dirs and module names=files, but
you can apparently use anything you want for either, as long as the
module decl matches the import.
Not a biggy, but then what exactly are packages for?
Bye!
Mark
ps: the samples in the windows release don't work - they're looking
for a dmd/bin dir, but there's only dmd/windows. Tried copying
bin & lib dirs in windows up a level but no luck.
More information about the Digitalmars-d-learn
mailing list