Quantcast

Data member called in lua with 'attempt to index field (a function value)'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Data member called in lua with 'attempt to index field (a function value)'

sunman
This post has NOT been accepted by the mailing list yet.
Hi , all
struct A{
int x
};

struct B{
A a;
};

The 2 structs have been registeres by luabind, then in lua script:

X = B()
X.a.x = 1

With the error with titles, how to deal with?
Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Data member called in lua with 'attempt to index field (a function value)'

sunman
This post has NOT been accepted by the mailing list yet.
I change the platform from win7 with vs2008 to hp-unix with aCC, it works as well, so how to explain it?
btw, i use .def_readwrite() property when registered by luabind.
Loading...