www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6554] New: Refused two imports of the same module

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6554

           Summary: Refused two imports of the same module
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



This code:

import std.bigint;
void main() {
    import std.bigInt;
}


DMD 2.055head gives this error:

test.d(3): Error: module std.bigint from file ...\src\phobos\std\bigInt.d
conflicts with another module bigint from file ...\src\phobos\std\bigint.d


While this code compiles with no errors:

import std.stdio;
void main() {
    import std.stdio;
}


I think those cases can't be both correct.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 25 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6554


dawg dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg dawgfoto.de
            Summary|Refused two imports of the  |windows case insensitive
                   |same module                 |imports



import std.bigint;
import std.bigInt;

Will apparently give different module names to the same disk files.

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