|
I have an issue I do not seem to find a reasonable solution
to in Lua 5.1 I wish to dynamically generate text keys and then put them
in a table to be retrieved by a generated text key. The nature of Lua is such that, while text keys are
supported, they can only be set in the source code. Because everything is an object in lua, two separate
instances of x=”abc” will generated different objects and Thus a[x] = 1 cannot be retrieved by a later by a[x]
where x was re-assigned (even to the same string). There does not seem a function to “de-objectify”
a value, nor does there seem to be a way to dynamically execute a generated
statement. Perhaps there is something I fail to understand. Thanks --------------- Bill Morita Cube 1040 503-495-9513 Bill.Morita@arrisi.com |