[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Direct access to key/value table items?
- From: Peter Shook <pshook@...>
- Date: Sun, 10 Aug 2003 16:54:33 -0400
Ando Sonenblick wrote:
Another thing: you mention that "Lua doesn't keep this information in the
How to find the key for a table value? Since Lua doesn't keep this
information in the table, you must either search the table, or build
another table with the reverse mapping of values to keys.
table". It doesn¹t ? Now THAT seems odd. Where does it keep it?
No. Nowhere. ;)
What I meant by this is there is no pointer from the value to the key,
and no way to find the value in the table without searching the table.