lua-users home
lua-l archive

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


On Mon, May 28, 2007 at 07:02:31PM -0400, Tim Hunter wrote:
> In Lua I can define two functions that share state through a closure:
...
> Can I do this in C? How?

With this

http://www.lua.org/manual/5.1/manual.html#lua_pushcclosure

Cheers,
Sam