Skip to content

Conversation

@XmiliaH
Copy link
Contributor

@XmiliaH XmiliaH commented Nov 23, 2025

TTLC is not fully self-hosting as the VM relies on correct upvalue close behavior for the closure implementation in
https://github.com/bytexenon/The-Tiny-Lua-Compiler/blob/ca95cdbd2e906e78121322ab1fc945554a529fd2/the-tiny-lua-compiler.lua#L4251-L4257

This also fixes break being allowed outside of loops.

@bytexenon
Copy link
Owner

This is a really clever, clean way to implement it, thank you!

@bytexenon bytexenon merged commit a5d7538 into bytexenon:main Dec 16, 2025
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.

2 participants