lua-users home
lua-l archive

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


Daurnimator wrote:
> Cdata returned from C structures is not the same each time it is
> fetched... This is creating problems with using cdata as keys in
> tables.

That's deliberate. cdata are unsuitable as table keys.

> Anyone got some tricks to work with cdata?

Read the docs: http://luajit.org/ext_ffi_semantics.html#cdata_key

--Mike