lua-users home
lua-l archive

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


Is there a way of writing a function "lua_link( name, set, get );", that would do this:
lua:  name = <any value(s)>
-> invokes the parameter passed as set, this is like the normal C-functions

lua: x = name
-> invokes set, which is also a normal C-function, but by default gets no parameters and returns only one.

I ask, because I have to take care of values between lua and C and atm I'm using functions, what is pretty ugly:P

Timm Felden