lua-users home
lua-l archive

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


> There is a way to get the pointer of a object with plain lua using the
> %p format modifier as in:
>
> local function obj_hash(obj)
>      return tonumber(string.format("%p", obj))
> end

This gives an error: invalid option '%p' to 'format'