Replies: 1 comment 1 reply
-
Do you have local i = 1
for i = 1, 10 do
-- whatever
end
-- more code
for i = 1, 20 do
-- whatever
end When I copy/paste the example code you provided, I do not get any warnings. But if I define |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using something like
I get a
Redefined local i
warning. Is it really bad style to reuse the same name (i
) for a loop variable? Or can I disable warnings like that?Beta Was this translation helpful? Give feedback.
All reactions