mikehend / luainterface

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

Method calls with out or ref in their signatures do not return the return value. #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a .NET assembly with a class having the following method:
    public bool TryGetValue(Tkey key, out TValue value)
2. Load assembly from Lua
3. execute ret, value = obj:TryGetValue("somekey")

What is the expected output? What do you see instead?
ret should be a boolean indicating success.
value should be the value if successful, nil otherwise.

Instead the result is: ret contains the value if successful, nil otherwise. 
value is always nil.

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

Please provide any additional information below.
Either the documentation of LuaInterface is incorrect or the code is incorrect. 
See: LuaInterface: User’s Guide

Original issue reported on code.google.com by anaris...@gmail.com on 26 Nov 2013 at 10:06