Open s5bug opened 2 years ago
The C++ side of this application expects my Lua side to look like
{ on_load = function(a, b) --[[ ... --]] end }
yet, when exporting
let on_load a b = a ^ b
I get
do local function on_load(a) return function(b) return a .. b end end return { on_load = on_load } end
And with
let on_load (a , b) = a ^ b
do local function on_load(tmp) return tmp._1 .. tmp._2 end return { on_load = on_load } end
How can I export a single function with multiple arguments?
The C++ side of this application expects my Lua side to look like
yet, when exporting
I get
And with
I get
How can I export a single function with multiple arguments?