[Issue 10089] Strange function call error message with specified module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 17 15:42:16 PDT 2013


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



--- Comment #5 from bearophile_hugs at eml.cc 2013-05-17 15:42:15 PDT ---
(In reply to comment #2)
> https://github.com/D-Programming-Language/dmd/pull/2040

Thank you for the fix.

Now the original program:

import std.stdio, std.range;
void main() {
    std.string.chunks("abcdef", 2);
}



Gives the error message:

temp.d(3): Error: undefined identifier 'chunks', did you mean 'template
chunks(Source)(Source source, size_t chunkSize)'?


It's essentially saying: "undefined identifier 'chunks', did you mean
'chunks'?"

Why is the error message not showing the name "std.string"? Maybe both 'chunks'
should be module-qualified.

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