Skip to content

Specification: how nested inline tables should be treated? #879

Answered by akuleshov7
akuleshov7 asked this question in Q&A
Discussion options

You must be logged in to vote

@marzer got it, thanks. So the right answer is the following: prefixes are not needed for nested tables in inline structures.

This code:

table2 = { table2."akuleshov7.com" = { name = "test" }, i = 1 }

VS

table2 = { "akuleshov7.com" = { name = "test" }, i = 1 }

is equal to the following one:

[table2]
    i = 1
[table2.table2."akuleshov7.com"]
    name = "test"

VS 

[table2]
   i = 1
[table2."akuleshov7.com"]
    name = "test"

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@akuleshov7
Comment options

@marzer
Comment options

@marzer
Comment options

Comment options

You must be logged in to vote
1 reply
@marzer
Comment options

Answer selected by akuleshov7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants