Closed GoogleCodeExporter closed 9 years ago
Add setGlobalLuaValue() which would do auto-conversion anyway. (Both to
LuaAlchemy
and to Wrapper)
Original comment by aglad...@gmail.com
on 17 Jan 2009 at 12:00
Original comment by rstehw...@gmail.com
on 24 Jan 2009 at 3:49
Pushed out res/remove-auto-tolua
Don't have any intention to add a global to do conversions automatically because
those conversions break all chaining of AS3 calls such as:
as3.class.String.new("Hello There").toUpperCase().toLowerCase()
Original comment by rstehw...@gmail.com
on 25 Jan 2009 at 1:34
It is not a global. It is a function.
lua_wrapper.setGlobal(luaState, "FOO", "Bar"); --> AS3 Userdata
lua_wrapper.setGlobalLuaValue(luaState, "FOO", "Bar"); --> Lua string
lua_wrapper.setGlobal(luaState, "FOO", new ByteArray()); --> AS3 Userdata
lua_wrapper.setGlobalLuaValue(luaState, "FOO", new ByteArray()); -->
AS3 Userdata
This is needed to be able to set native Lua values from AS3.
Original comment by aglad...@gmail.com
on 25 Jan 2009 at 1:40
Original comment by rstehw...@gmail.com
on 25 Jan 2009 at 6:24
Original issue reported on code.google.com by
aglad...@gmail.com
on 16 Jan 2009 at 5:17