Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce constants #147

Closed
LeonWilzer opened this issue Apr 29, 2024 · 3 comments · Fixed by #148
Closed

Introduce constants #147

LeonWilzer opened this issue Apr 29, 2024 · 3 comments · Fixed by #148

Comments

@LeonWilzer
Copy link

Lua recently added support for constant variables in version 5.4. It would be very useful if clue also had consts.

@Maiori44
Copy link
Member

What's the syntax for constants in Lua 5.4?

@Markos-Th09
Copy link
Member

Markos-Th09 commented Apr 29, 2024

I had mentioned this before. The syntax is

local var <const> = "foo"

@Maiori44
Copy link
Member

Oh, right.
That wouldn't be hard to add, but what should happen in versions before 5.4?

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 a pull request may close this issue.

3 participants