LuaState
LuaState copied to clipboard
throwing when users call functions with wrong arguments
Hi! first of all, great work & thank you I've integrated your library successfully but now I need to let my script users know when they're calling functions with wrong arguments: wrong number and/or type. Right now converted values are used (nil => 0, "0.4" => 0.4) I'd rather tell the users something went wrong rather than giving them false positives.. I'm not sure where to go in the code to fix it myself. thanks for your help!
Lua is dynamically typed language so there are no "wrong arguments". All primitive values can get to Lua.