[Issue 4563] [module system] Error messages for missing package or missing name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 24 10:21:55 PDT 2012


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



--- Comment #10 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-24 10:21:54 PDT ---
(In reply to comment #9)
> test.d(1): Error: module bitmanips cannot be found.

Ok, I'll implement a pull and see what others think about it.

> (Unrelated: do you know why D error messages don't have an ending full stop "."
> as in correct English?)

GCC and DMC don't add a period either. I think it's purely accidental, some
tools do, others don't (and sometimes it's mixed). I don't mind such issues
though. Personally I worry much more about things like this:

void main()
{
    void function(int x, int y, float z) funcC;
    void function(int x, float y, int z) funcD;
    funcC = funcD;
}

Error: cannot implicitly convert expression (funcD) of type void function(int
x, float y, int z) to void function(int x, int y, float z)

It would make it much easier to debug such cases if the error spanned multiple
lines and aligned the types, for example:

Error: cannot implicitly convert expression (funcD) of type 
void function(int x, float y, int z) to 
void function(int x, int y, float z)

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


More information about the Digitalmars-d-bugs mailing list