[Issue 3972] Regarding module with name different from its file name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 16 13:58:51 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3972
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-03-16 13:58:43 PDT ---
I actually hit this today and got sufficiently irritated to improve the error
message a bit. The 'else' clause should also be improved, it's bug 2059
("Horrible error message"). Perhaps change it to (untested):
error(loc, "has inconsistent naming. It was imported as %s", srcname);
Index: module.c
===================================================================
--- module.c (revision 416)
+++ module.c (working copy)
@@ -621,7 +621,10 @@
if (!dst->insert(this))
{
if (md)
- error(loc, "is in multiple packages %s", md->toChars());
+ {
+ error(loc, "has inconsistent naming.\n"
+ "It was imported as %s but module declaration is %s", srcname,
md->toChars());
+ }
else
error(loc, "is in multiple defined");
}
--
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