[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luajit FFI cdata problem
- From: Mike Pall <mikelu-1103@...>
- Date: Wed, 30 Mar 2011 12:50:47 +0200
> Cdata returned from C structures is not the same each time it is
> fetched... This is creating problems with using cdata as keys in
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