245597377 / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Array indexing inconsistent between 1-based and 0-based #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a C# function that returns an `object[]`
2. Call the function from Lua `a = obj:Example()` and index into the returned 
array at position 1, `a[1]`
3. Output the value

What is the expected output? What do you see instead?
The expected output is the 1st element (consistent with 1-based indexing 
convention in Lua) but the 2nd element is selected or an error occurs if the 
array is not long enough.

What version of the product are you using? On what operating system?
LuaInterface 2.0.3

Original issue reported on code.google.com by james.jdunne@gmail.com on 23 Apr 2012 at 12:04