Open MineBill opened 4 months ago
noted, will do. I believe this to be in part related to another planned feature, which is function overloading. its not as straightforward since it needs to be implemented on the C api side, as lua doesnt have the concept of overload
Given this code:
I should be able to call it from Lua like this:
Luckily,
core:odin/ast
already provides us with default values for parameters, so all we need to do is get the source code string and simply append it if it exists when generating the Lua proc wrapper.(You can take a look at my implementation over here: https://github.com/MineBill/Engin3/commit/b27530c304c374a6868a3d5d21c1da0793aa99d6)