JumpNotZero/NLua — Issue #2: Decide on a way to handle multiple return values from Lua to the CLR
Author: JumpNotZero
Created: 2011-11-14 04:39:17+00:00
State: open

Other Lua bindings return an array of System.Object. I find this a little annoying and since we are focusing on real-time dynamic binding, perhaps adapting the signature of the method to the Lua function would be good. Consider the Lua function below being exposed to the CLR in C# as "double GetNextThreeIntegers(double start, out double second, out double third)".

```Lua
function GetNextThreeIntegers(start)
return (start + 1), (start + 2), (start + 3)
end
```