www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - no overloading of inner functions

reply Sean Kelly <sean f4.ca> writes:
I think I posted this one before, but just in case I haven't:

D:\code\d>type test6.d
int main()
{
void foo(int x) {}
void foo(char x) {}

foo( 1 );
return 0;
}

D:\code\d>dmd test6.d
test6.d(4): declaration main.foo is already defined
Jul 28 2004
parent reply "Walter" <newshound digitalmars.com> writes:
Yes, I have logged this one. I don't think it's a big deal, though, since
the workaround is pretty easy.
Jul 30 2004
parent Deewiant <deewiant.doesnotlike.spam gmail.com> writes:
Walter wrote:
 Yes, I have logged this one. I don't think it's a big deal, though, since
 the workaround is pretty easy.
 
But it's annoying, especially since the bug still hasn't been fixed (DMD 0.131).
Sep 10 2005