Error not callable with argument types but types matches

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 7 09:43:00 PST 2015


On Saturday, 7 November 2015 at 17:31:53 UTC, Sliya wrote:
> I imported "Noise" instead of "noise". What I don't get is that 
> I have no file named "Noise", so why doesn't the line import 
> Noise; throws a compilation error ?

Are you on Windows? File loads there ignore case by name so the 
compiler tries to load "Noise.d" and Windows will let you open 
"noise.d" too.

To avoid this kind of thing, I always put a `module your.name;` 
at the top of every file so you get the name right there in the D 
language too.


More information about the Digitalmars-d-learn mailing list