lua-users home
lua-l archive

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


>Note: There is no guarantee that a lightuserdata is a pointer at all.

Not really true. It might not have been a pointer before, but once it became
a lightuserdata it became a pointer... If you cast longs to void* then you're
playing it dangerously in C but once you've done it, Lua is happy and thinks
its is a pointer (but does not think too hard, because it never derefences it).
--lhf