Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Very big code results in too many locals #285

Open
plt-amy opened this issue May 19, 2020 · 2 comments
Open

Very big code results in too many locals #285

plt-amy opened this issue May 19, 2020 · 2 comments
Assignees
Labels
Backend Issues/PRs relating to the generation of Lua code bug

Comments

@plt-amy
Copy link
Member

plt-amy commented May 19, 2020

Like ahc, but really, anything big enough will get you above the local limit.

@plt-amy plt-amy added the Backend Issues/PRs relating to the generation of Lua code label May 19, 2020
@SquidDev SquidDev added the bug label May 19, 2020
@SquidDev SquidDev self-assigned this May 19, 2020
@SquidDev
Copy link
Member

This is one of those ones I really don't know how to solve in a sensible way. Obviously we should be re-using locals inside functions, but some of this happens at the top level which makes things much harder.

@plt-amy
Copy link
Member Author

plt-amy commented May 21, 2020

Count all the locals that happen at top-level, shove them in a locals table instead, or even make them globals after the limit?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backend Issues/PRs relating to the generation of Lua code bug
Projects
None yet
Development

No branches or pull requests

2 participants