lua-users home
lua-l archive

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

Sivan Thiruvengadam wrote:
I am able to query the global lua table using the following code. which queries the global lua table perfectly. Is there any identical mechanism avaialble for querying local lua tables dynamically

You can't[*] --- Lua locals aren't kept track of by name internally and are stored in an entirely different manner (which is why they're fast). The only way of accessing your local is to call a C function with it as an explicit parameter.

[*] To be technically accurate you can. But it requires a lot of hairy knowledge of the Lua internals, breaks easily, and is not actually useful except for debugging purposes.

David Given