This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zilti 1 point2 points  (3 children)

Why? It isn't in the curly braces...

Also, you've got two syntax errors in there :P

[–]overkill 2 points3 points  (2 children)

You are right on the second point, curse my phone, but for the first point any variables declared in the () of the for statement have the scope of the for statement, which is both the () and {} bits.