lua-users home
lua-l archive

Re: computing the hashcode of lua objects in a program

[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'

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