We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have a type bound to Lua, I can construct like so:
v = vec4.new(1,2,3,4)
However, .new will also take any extra arguments and ignore them:
.new
v = vec4.new(1,2,3,4,'foo', 'bar?') -- v is a valid vec4, no error
Maybe these cases should be rejected?
This can lead to confusion if we hav, eg. vec2, vec3, vec4, like so:
vec2
vec3
vec4
-- It looks like we meant to create vec4 -- If we don't notice the '2' character, it is confusing. v = vec2.new(10,20,30,40)
I don't know kaguya's internals, but couldn't the constructor (or other functions) check lua_gettop when they're called?
lua_gettop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I have a type bound to Lua, I can construct like so:
However,
.new
will also take any extra arguments and ignore them:Maybe these cases should be rejected?
This can lead to confusion if we hav, eg.
vec2
,vec3
,vec4
, like so:I don't know kaguya's internals, but couldn't the constructor (or other functions) check
lua_gettop
when they're called?The text was updated successfully, but these errors were encountered: