Re: Symbol lookup failed in imported module

2016-10-02 Thread Lodovico Giaretta via Digitalmars-d-learn
On Sunday, 2 October 2016 at 20:12:16 UTC, rumbu wrote: [...] I think you'll find the following article really interesting. It talks exactly about what you are experiencing. http://dlang.org/hijack.html

Symbol lookup failed in imported module

2016-10-02 Thread rumbu via Digitalmars-d-learn
module module1; void foo(string s) {} -- module module2; import module1; void foo(int i) { foo("abc"); //error - function foo(int) is not callable using argument types(string) } Ok, this can be easily solved using "alias foo = module1.foo", but according to the