Jump to content
  • Advertisement
Sign in to follow this  
Pet123

luabind_03 : how to get object's name?

This topic is 4380 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!