bennyxqg / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

as3.makeprinter() result does not like to travel across states #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Perhaps a symptom of something being overly simplistic in sugar code.

    local print = as3.makeprinter(output)
    print("this is printed ok")

    local lua = as3.class.luaAlchemy.LuaAlchemy.new()
    lua.setGlobal("print", print)
    -- TODO: Check result here if pasted in a test case
    lua.doString([[print("userdata is printed instead of this")]])

Note that this mode of operations not officially supported by 0.3*, so that's 
not a big deal, but, still, it would be cool if we'd be able to do that.

Original issue reported on code.google.com by aglad...@gmail.com on 26 Feb 2012 at 2:12

GoogleCodeExporter commented 9 years ago
If this leads to significant changes in callback system, make sure to include 
fixes for #116.

Original comment by aglad...@gmail.com on 26 Feb 2012 at 2:16