Skip to content

lua 5.5 - for loop variables are now const#42

Open
spotaws wants to merge 1 commit intoToxicFrog:masterfrom
spotaws:patch-1
Open

lua 5.5 - for loop variables are now const#42
spotaws wants to merge 1 commit intoToxicFrog:masterfrom
spotaws:patch-1

Conversation

@spotaws
Copy link

@spotaws spotaws commented Mar 5, 2026

In Lua 5.5 (latest stable lua), for loop variables are now const. This fixes the code in ast/IO.lua to define a local variable within the loop that can be modified. I believe this is the only change necessary to support Lua 5.5, and it is backwards compatible.

In Lua 5.5 (latest stable lua), for loop variables are now const. This fixes the code in ast/IO.lua to define a local variable within the loop that can be modified. I believe this is the only change necessary to support Lua 5.5, and it is backwards compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant