Modules/packages and cryptic errors

al al at la.com
Sat Oct 31 07:02:21 PDT 2009


Frank Benoit Wrote:

> al schrieb:
> > module bar is in multiple defined
> 
> This often indicates a modules file name and the identifier in the
> "module" statement are unequal (case sensitivity)

I have all files and imports lowercase. I have class names following filenames capitalized, but that shouldn't matter, should it?


When I run:

dmd foo/bar.d

is that assuming module foo.bar or bar? If that's the latter, it might explain why I'm getting an error (import finds this file under foo.bar), but how should I compile files then?




More information about the Digitalmars-d-learn mailing list