1.new tbClass{}, Binding amp;quot;FunNameamp;quot; to C function amp;quot;thunkamp;quot; and set it's closure with upvalue;
2.rigister metatable amp;quot;Classamp;quot;, and set metatable __index to t ...……
首先是判空
testtable={}
if next(testtable) ==nil then
print(amp;quot;这个table是空的amp;quot;)
end
插入table
local table1={=amp;quot;aaaaamp;quot;,=1}
local table3={=amp;quot;ccccamp;quot;,=3 ...……
首先安装lua eclipse,装插件或者独立版的都可以。但是在独立版的eclipse装subclipse会报错,Failed to prepare partial IU。解决办法:
work around:
go to Help -amp;amp;gt; Install New Software..., choose amp ...……