local atable = {
["key"] = "Value"
}
print(atable.key) -- Prints "Value"
print(atable["key"]) -- Prints "Value"
The latter is more useful when Lua could misinterpret the dot notation (spaces or special characters in key). It is also more useful when you're dynamically indexing the table.


Posted by

