Error: shadowing declaration is deprecated

BCS BCS at pathilink.com
Sun Dec 24 15:28:51 PST 2006


jicman wrote:

> char[] u;
> foreach(u; FPUsers)
> {
> }
> 
> That should work.

the u in the foreach is a new variable. thus it shadows the outer u.


More information about the Digitalmars-d-learn mailing list