[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 06:48:45 PDT 2012


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



--- Comment #8 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-24 06:48:43 PDT ---
(In reply to comment #7)
> test.d(1): Error: module bitmanips is in file 'std\bitmanips.d' which cannot be
> read
> The Case#1 probably needs a better error message.

Yes, it can be: 

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

However what if the module is not in any package? Example:

import bitmanips; void main() { }

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

What should we do here?

> test.d(1): Error: name 'foo' not found in module std.math, did you mean
> function 'fma'?

I would replace 'name' with 'symbol' here.

-- 
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