hi,我是Lua新手,尝试了一下stable,不知如何把创建的对象在多个State间共享?
下面是我写的测试代码
local print_r = require "print_r"local stable = 『More』
不欢迎 - 回复 | (2761) | 庞统 | 2014-06-05 05:43:52
hi,我是Lua新手,尝试了一下stable,不知如何把创建的对象在多个State间共享?
下面是我写的测试代码
local print_r = require "print_r"
local sta 『More』 - 回复 | (2737) | jwpfish | 2014-02-10 05:09:06
local info = stable.init { foo = { bars = "*bar", -- struct bar array enums = "*xx", }, bar = { first = true, second = 1, third = "*xx", -- enum xx array }, xx = { "ONE", "TWO" }}