Error: shadowing declaration is deprecated
BCS
BCS at pathilink.com
Sat Dec 23 22:56:45 PST 2006
jicman wrote:
> Greetings!
>
> this code,
>
> foreach(char[] u; FPUsers)
> {
>
> }
>
> results in,
>
> Error: shadowing declaration jic.libs.FPSDK.FindUser.u is deprecated.
>
> Will anyone explain this to me? I tried to do a search on it, but I couldn't
> anything related to this. Found other integer arrays, but nothing about
> char[]. Any help would be greatly appreciated. Thanks.
>
> jos�
>
Code of the form
{
int a;
{
int a;
}
}
is not allowed. check to see if there is another variable in scope
called "u". It or the "u" from the foreach needs to be renamed.
More information about the Digitalmars-d-learn
mailing list