Fallback properties for classes

Kristofer Karlström <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hi,

 

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.

 

<CODE>

Database:LoadFile("somedbfile.db")

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

Print(rs.someField)

</CODE>

 

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.
http://p.sf.net/sfu/intelisp-dev2dev

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
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.