lua-users home
lua-l archive

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

>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}