lua-users home
lua-l archive

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


> 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?

It avoids an extra test (t->node == NULL) when querying tables.

-- Roberto