lua-users home
lua-l archive

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


I have noticed that will makes multi-vm fail. although I don't meet this issue myself before, it makes my project fail when I tried it. So I try to solve this problem:
  - use NULL instead of dummynode
  - add dummynode's pointer to lua_State (just add it to global state is enough)

 But both of solution has its disadvantage :(

I'm using luaL_checkversion now.

regards,
Xavier Wang.

2012/9/21 云风 <cloudwu@gmail.com>
http://www.codingnow.com/temp/luatable.pdf  (In Chinese)
Read page 13 :)

2012/9/11 Xavier Wang <weasley.wx@gmail.com>:
> hi list,
>
> i'm studying lua's implement now, i'm wondering why lua's table need a dummy
> node, why not just set node to NULL if table's hash part is empty? could
> someone tell me the reason?
>
> regards,
> Xavier Wang



--
http://blog.codingnow.com