cannot have overloaded nested functions?
Jonathan M Davis
jmdavisProg at gmx.com
Thu May 16 01:32:21 PDT 2013
On Thursday, May 16, 2013 01:15:06 Timothee Cour wrote:
> > as far as I can tell, it means exactly what it says, and I don't know how
>
> it could be friendlier.
>
> the error message 'declaration fun is already defined' is surprising
> because 'void fun(int x);' and 'void fun();' are typically 2 different
> function declarations, having different signatures. So this this sounds
> misleading/surprising.
>
> > if you have a good suggestion as to improve the error message, please
>
> create an enhancement request for it
>
> how about:
>
> 'cannot overload a function in a nested scope'
Sounds fine to me. Open an enhancement request for it.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list