If I have:
Now if I want to delete all references to another_key is there a way to do that with out looping sorted_table.
I messed around with rawget and rawset. My understanding of the manual is if I change an object with rawset using the objects rawget name then all objects referencing that object will have that new value.
This doesn't work at all.
main_table = {a_key={"v"}, another_key={"val"}}
sorted_table = {}
sorted_table[1] = main_table.another_key
sorted_table[2] = main_table.a_keyNow if I want to delete all references to another_key is there a way to do that with out looping sorted_table.
I messed around with rawget and rawset. My understanding of the manual is if I change an object with rawset using the objects rawget name then all objects referencing that object will have that new value.
rawset (_G, rawget (main_table, "another_key"), nil)This doesn't work at all.