http://d.puremagic.com/issues/show_bug.cgi?id=4563

           Summary: [module system] Error messages for missing package or
                    missing name
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-08-01 15:10:25 PDT ---
This is a wrong D2 program ("bitmanips" name doesn't exist):


import std.bitmanips: bitfields;
void main() {}


This is the error message given by dmd 2.047:

test.d(1): Error: module bitmanips is in file 'std\bitmanips.d' which cannot be
read


But a better error message can be:

test.d(1): Error: module 'bitmanips' not found in package 'std'.

---------------------

This is another wrong D2 program (the 'bitfield' name is missing inside
std.bimanip):


import std.bitmanip: bitfield;
void main() {}


This is the error message given by dmd 2.047:

test.d(1): Error: import bitfield not found
test.d(1): Error: alias test.bitfield recursive alias declaration


But the second error message can be omitted, it's useless and quite confusing.
So DMD can print just:

test.d(1): Error: import name 'bitfield' not found inside 'std.bitmanip'
module.


See also bug 3845

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

Reply via email to