> On Dec 19, 2016, at 12:37 AM, Mr Bee via swift-users <swift-users@swift.org> > wrote: > > Is there a way to print the 'i' of the let, and the 'i' of the loop, and the > 'i' of the var, from inside of the for loop? I know it's a bad practice, but > I'm just curious.
No, there is no way of referring to them because their names are shadowed by the inner variable. That’s why it’s a bad practice. —Jens
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users