hi there,
I am a fairly new lua developer, so please excuse me if I totally messed up something … but, here is my problem:
test code:
local t = {}
t[1] = 10
t[2] = 20
t[3] = 30
t[5] = 50
print("table length is",#t)
Console output:
table length is 3
Why? I expected it to be 4… Also If i replace t[5] = 50 with table.insert(t,5,50) nothing changes… Could you please explain me what is going on here? Thank you.
[import]uid: 11686 topic_id: 17796 reply_id: 317796[/import]