Lua get class name of object at runtime
<p>im wondering if there is way to get class name of object at runtime.
i mean something like this:
here is my very simple script</p>

<pre><code>person=TPerson:new()
</code></pre>

<p>And i want in my app (in delphi) get "TPerson"
I tried it with lua debug info but what i know to get is called function "new" but i need to get class "TPerson"</p>

<pre><code> lua_getstack(l,0,PL_Debug); 
 lua_getfield(l,LUA_GLOBALSINDEX,'f');
 lua_getinfo(l,'n',PL_Debug);   
 nameOfCurrnetFunction:=PL_Debug.name; // here is stored "new"
</code></pre>

<p>so is possible to get class name?
thanks</p>