Hello,I was playing around with LuaJIT's FFI today and noticed a peculiarity and was curious...
Is there a reason why the following snippet of code prints: true true nil When I would expect it to be: true true true ---------------------- ffi = require('ffi') ffi.cdef[[ typedef struct foo { int a, b; } foo_t; ]] typeFoo = ffi.typeof('foo_t') foo = typeFoo() typeList = {} typeList[typeFoo] = trueprint( typeFoo==ffi.typeof(foo), typeList[typeFoo], typeList[ffi.typeof(foo)] )
---------------------- Thanks, Jeff