Sorry, you must’ve misunderstood me. When i ran the example in the corona documentation with a few additions i get this:
local people = {
{ name="Bob", age=32, gender="male" },
{ name="Jane", age=29, gender="female" }
}
print( people[1].name ) -- output: Bob
print (people[1].age)
people[1].age = 46
print (people[1].age)
print( people[2]["gender"] ) -- output: female
print (people[2].age)
people[2].age = "thirty-four"
print (people[2].age)
Output:
Bob
32
46
female
29
thirty-four
So why, in this example, can i have a dot notation which is a number but not in my own? [import]uid: 65237 topic_id: 31132 reply_id: 124679[/import]
[import]uid: 65237 topic_id: 31132 reply_id: 124691[/import]