lua-users home
lua-l archive

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


Sorry this is my bug... "a" recursively

as badly with lua-tables
such a good container,
but it does not present in any language :-(


2008/3/12, Alexandr Leykin <leykina@gmail.com>:
Hello!

How to know to be a key in lua table? Without use pairs/ipairs/next?

a = {a,b,c,d}

a.a => nil, but key "a" present in table!
a.f => nil, but key "f" not in table!

Than differ a.a and a.f??? (a.a - key in the table a, a.f - not)

Thanks.


--

Alexandr