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: Hugo Musso Gualandi <hgualandi@...>
- Date: 2021年4月28日 16:11:09 -0300
>So, if I wanted a numeric hash for a table (or i assume any of the other
>reference types) I could simply pass the result of %p formatting into
>FNV1-a say?
>
Yes, with the important caveat that different tables will have a different hash, even if they have the same contents.
-- hash(t1) ≠ hash(t2)
local t1= {x=10}
local t2= {x=10}