lua-users home
lua-l archive

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

Hello all,

Apologies for this question, which is undoubtedly a faq, but I haven't
yet found an answer.

Is there a simple method in lua for "linking" variables so as to make
them visible in both the lua code and the C code.  For example Tcl
includes a function Tcl_LinkVar(interp, name, ptr, type); which makes
the C variable of the given type at the given location accessible
through Tcl with the given name.

Is there something similar in lua?  Thanks

Stephen Parker.  Pi Technology.  +44 (0)1223 203438.