I read in many topics what we can’t use hashes as a table keys in release builds.
If Project->Bundle->iOS Application… (set Release Mode checkbox) is the way to make a release build, then code below works in this build.
function init(self)
local h = hash("key")
print(h, type(h))
self.t = {}
self.t[h] = "value"
pprint(self.t)
end
function update(self, dt)
post("@render:", "draw_text", { text = self.t[hash("key")], position = vector3(100, 100, 0) } )
end
Where hashes as table keys NOT working?