lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Xianfu Pan <>于2017年1月11日周三 下午4:06写道:
Greetings, dear Wu:
No, the first idea came to my mind was to call `luaH_resize(L, h, 0, 0)`. it failed and crashed!
I have read the code of `luaH_resize(L, h, 0, 0)`, it only re-size the space but NOT deal with **ref-relationship** among gc objects. 
objects will be freed in C, but available in lua, thus it crashed.

table.clear() was discussed during lua 5.3 alpha stage :