lua-users home
lua-l archive

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

Martin, Marcus wrote:
> function Main(instance)
>     local fid = 17
>     InvokeCMethod()
> End
> Can I get at the value of the above local variable from within the InvokeCMethod (in C code)? How would I do that?

besides checking the Lua internals, note that if that were a Lua function, it wouldn't be able to access locals either.  Doing something different in C is straining the contract between caller and callee, at the very least.