|
The main reason I actually use it is to get
variable name from it's value (in my case - a table).
The exact example is this (the dialog
subsystem):
function offerchoice(...)
...
if type(the_choice.select)
~= "function" then
dprint("ERROR: " .. table.find(_G, the_choice) .. ".select() not
found")
end
...
end
choice_yes = {}
choice_no = {}
offerchoice(choice_yes,
choice_no)
With respect,
Grisha
|