lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
 
A quick question. What's the best way to fill a userdata with a table? for example, I have a table
config
{
length = 3,
width = 2,
color = "red"
}
 
and I have a structure in C, that I can expose to lua as a userdata.
class CConfig
{
int length;
int width;
string color
}
 
how do I fill the CConfig with  table config?
 
Thanks



Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!