[Issue 11451] import statements don't work when compiling several files at once

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 7 04:49:17 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11451



--- Comment #7 from Atila Neves <atila.neves at gmail.com> 2013-11-07 04:49:14 PST ---
> http://dlang.org/module.html
> 
> "The module name is the file name with the path and extension stripped off."

I'm still confused. So when is the module's fully qualified name ever used in
the absence of a module declaration? From the link above:

ImportDeclaration:
    import ImportList ;
    static import ImportList ;

ImportList:
    Import
    ImportBindings
    Import , ImportList

Import:
    ModuleFullyQualifiedName
    ModuleAliasIdentifier = ModuleFullyQualifiedName

and:

ModuleDeclaration:
    module ModuleFullyQualifiedName ;

ModuleFullyQualifiedName:
    ModuleName
    Packages . ModuleName

The way I still read it is if the module declaration is not present, then
ModuleName is the filename without the path or extension, but
ModuleFullyQualifiedName would depend on where compilation takes place.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list