|
|
||
|
On Пт 15.07.16 2:57, Sean Conner wrote:
Oh, so to clarify (kind of making the bigint library up):
bi = require "bigint"
x = bi.make(2^128) -- syntax issues but I want something
y = bi.make(2^128) -- really really large
t = {}
t[x] = "booya!"
print(t[y])
booya!
In this case __key would help at all. With or without it you'd have to keep a cache of these values, because it's needed to make __key return the same object. So, it's easier to make bi.make return the same object for both calls instead.
Best regards, Sergey "GrayFace" Rozhenko, mailto:sergroj@mail.ru