lua-users home
lua-l archive

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


I wrote:
> You'll be able to do this with reasonable efficiency with the
> planned metatables for cdata objects.

Support for ctype metamethods has just been committed to LuaJIT
git HEAD. Here are the docs:

http://luajit.org/ext_ffi_tutorial.html#metatype
http://luajit.org/ext_ffi_api.html#ffi_metatype

Have fun -- feedback welcome!

--Mike