Get the latest tech news

Creating C closures from Lua closures


When I set out to bridge the entire Windows C API to Lua, one of the most interesting and fun challenges I had was to create C callbacks from Lua functions. Without this, a significant portion of the API would be useless, such as WNDPROC.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C closures

C closures

Photo of Lua closures

Lua closures