Re: computing the hashcode of lua objects in a program
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: computing the hashcode of lua objects in a program
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2021年4月28日 10:01:21 -0300
> 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'