STL table using metatable to access

Thomas Nelson <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Before I dive into this too far, has anyone thought of/implemented using 
a metatable directly access a C++ STL container as a lua table?

Correct me if I'm wrong but container_policy.hpp just copies the values 
of the existing table into a lua table and returns that.  Couldn't we 
apply a meta table with "__index" "__newindex" and "__len" methods 
specialized to the container type.

TomN


------------------------------------------------------------------------------
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.