Re: What is the name of the table being checked in a Luabind object __index function?

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Fri, Feb 19, 2010 at 02:26:12PM +0000, Colm Sloan wrote:
> I want to iterate throgh all of the values in the table used in the __index
> function of luabind created class objects. I went through the C++ source but
> I couldn't find the name of the table. Does anyone knnow what it is? I want
> to access it in a Lua file.

There is currently no way to access the underlying table. There is the
class_info() function that can be used to get information about the
class. See test/test_class_info.cpp.

There might be other ways to achieve what you want though. Why do you
need to iterate over the members?

-- 
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.