LuaState icon indicating copy to clipboard operation
LuaState copied to clipboard

throwing when users call functions with wrong arguments

Open khanh-tech opened this issue 6 years ago • 1 comments

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!

khanh-tech avatar Nov 22 '18 13:11 khanh-tech

Lua is dynamically typed language so there are no "wrong arguments". All primitive values can get to Lua.

AdUki avatar Nov 22 '18 16:11 AdUki