Hi folks,

again, I have a question regarding LUA. I am facing the problem that I need to know the name of a table inside a function.

My easy example:

Code:
myTable={}
myTable.hello=function()
  print('hello, my name is '..tablename)
end
Calling
Code:
myTable.hello()
should print out "hello, my name is myTable"

I understand that you can print the pointer of a table by using
Code:
print(myTable)
And I think I just need the other way around, converting a pointer to the name. How to do that?

BR/Marc