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
Boolean variables only half implemented #214
Comments
Hi, boolean is not defined - hence it is assumed that this is a userdata type |
I guess that I intended to add it but didn't - we can either remove it as a recognized type or add support for it. |
Removing it is quite easy I think as the only place it is recognized is in the parser. |
Both, fully implementing or removing it could break existing code. |
I am going to remove it from being recognized the parser for now. |
…, the parser will no longer recognize the :boolean annotation.
I also made some success of re-implementing |
Boolean variables seem to only be implemented half.
They can be declared with
local b:boolean
but@boolean(b)
casts b to ausertype
with metatableboolean
.Furthermore,
local b:boolean = tostring(1)
will error butlocal b:boolean; b = tostring(1)
will not error at compile nor runtime.What is the expected behavior of boolean variables?
The text was updated successfully, but these errors were encountered: