Skip to content

Conversation

@WebFreak001
Copy link

Because for my function luaEmitEvent(A)(string type, A[] args...) I coulnd't pass an array I made this modification

@JakobOvrum
Copy link
Owner

Needs a unit test.

Also, it looks like it would conflict with the existing call function. What should happen with the following code?

function myFunction(a)
    print(type(a))
end
auto myFunction = lua.get!LuaFunction("myFunction");
myFunction.call([1]);

Should it print table or number? The user could mean either.

Maybe it should be a separate function named something like callVariadic.

@WebFreak001
Copy link
Author

thats a good idea to rename it but i dont know nothing about unit tests so I cant add it

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