Sign in to follow this  
Pet123

luabind_03 : how to get object's name?

Recommended Posts

hi there i have a luabind::object, i know its a table and i can get its content by luabind::object's member function (.begin(), .end(), etc.), but how to get this table's name? thank you.

Share this post


Link to post
Share on other sites
hi

okay, maybe i didnt make myself clear enough, i'll try to explain my question :


-- test.lua
-- here is a table
a = {};



now i do this in cpp


// main.cpp

object g(get_globals(L));
object t = g.at("a");

assert(LUA_TTABLE == t.type());

// here is my question :
// now i want to know t's name in lua (its 'a'), how to do it?




thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this