lua-users home
lua-l archive

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


On Jul 31, 2011, at 13:58 , Henk Boom wrote:

> On 30 July 2011 10:22, Mike Pall <mikelu-1107@mike.de> wrote:
>> The FFI data types are strictly typed and behave accordingly. In
>> fact, it's just a convenience that you can compare them with other
>> Lua object types at all. Otherwise all such comparisons would
>> return false.
> 
> This would match with the lua reference, which says
> 
> "Equality (==) first compares the type of its operands. If the types
> are different, then the result is false."

This is why I ended up adding ffi.C.NULL for luaffi with the standard vm.

-- James