[Issue 4563] [module system] Error messages for missing package or missing name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 4 03:11:28 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4563
--- Comment #4 from bearophile_hugs at eml.cc 2012-01-04 03:11:27 PST ---
The situation is not improved.
Wrong D2 code:
import core.stdc.stdlib: puts;
import std.stdio: reverse;
void main() {
puts("hello");
int[] a = [1, 2, 3];
reverse(a);
}
After the recent changes in import semantics DMD 2.058head gives:
test.d(4): Error: undefined identifier puts
test.d(6): Error: undefined identifier reverse
But instead of such errors at the usage point I suggest to give import errors,
something like:
test.d(1): Error: name 'puts' not present in 'core.stdc.stdlib' module.
test.d(2): Error: name 'reverse' not present in 'std.stdio' module.
--
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