AdUki / LuaState

Lua51-52 binding library
Apache License 2.0
77 stars 14 forks source link

throwing when users call functions with wrong arguments #20

Open khanh-tech opened 5 years ago

khanh-tech commented 5 years ago

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!

AdUki commented 5 years ago

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