Fallback properties for classes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Fallback properties for classes

Kristofer Karlström



Is there any way to add a class “fallback” function.

I would like to have dynamic properties. I will try to explain with the example below.




Local rs = database:ExecQuery(“select someField from table”)




The class rs needs to have this fallback function.. It does not know before the script has been executed how it should be declared.


Is it possible?

This e-mail has been scanned for viruses by MessageLabs.

Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
luabind-user mailing list
[hidden email]