Skip to content

[markdown] Treat loop var as a const for future support#172

Merged
glennj merged 1 commit into
exercism:mainfrom
IsaacG:markdown
May 14, 2026
Merged

[markdown] Treat loop var as a const for future support#172
glennj merged 1 commit into
exercism:mainfrom
IsaacG:markdown

Conversation

@IsaacG

@IsaacG IsaacG commented May 14, 2026

Copy link
Copy Markdown
Member

No description provided.

@IsaacG

IsaacG commented May 14, 2026

Copy link
Copy Markdown
Member Author

Fixes the failure in exercism/moonscript-test-runner#18

@glennj

glennj commented May 14, 2026

Copy link
Copy Markdown
Contributor

I haven't found any others. Thanks Isaac!

@glennj glennj added x:rep/small Small amount of reputation x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises) x:action/fix Fix an issue labels May 14, 2026
@glennj glennj merged commit 7be60fe into exercism:main May 14, 2026
4 checks passed
@IsaacG

IsaacG commented May 14, 2026

Copy link
Copy Markdown
Member Author

@glennj I'm curious if you know what changed and why. Is this a new language feature that loop vars are immutable or some subtle bug?

@glennj

glennj commented May 14, 2026

Copy link
Copy Markdown
Contributor

Yes this is a change from Lua 5.4 to 5.5 where the "control variable" is now readonly.
https://www.lua.org/manual/5.5/manual.html#8

I can't answer "why". I'm not plugged into those discussions.

@IsaacG IsaacG deleted the markdown branch May 14, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/fix Fix an issue x:rep/small Small amount of reputation x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants