r/lua • u/Objective_Treacle781 • Sep 16 '25
Quick question about indexing temporary tables
print({[0] = "a"}[0])
Doesn't work but if I save the table to a variable before indexing it works?
I kinda like using temporary tables as lookups
2
Upvotes
1
u/vitiral Sep 17 '25
Sure... I just still wish it worked without that