lua-users home
lua-l archive

LuaJIT FFI cannot compare types?

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


Why it is not possible to compare FFI types? I can compare any other objects but not types created via ffi.typeof
/usr/local/bin/luajit: /private/tmp/test.lua:3: attempt to compare 'enum 21' with 'enum 21'
local ffi = require 'ffi'
local charp = ffi.typeof('char *')
if charp == charp then
 print 'equal!'
end
Cheers,
-- 
Adam Strzelecki

AltStyle によって変換されたページ (->オリジナル) /