Re: Nested table syntax
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Nested table syntax
- From: Rici Lake <lua@...>
- Date: 2004年8月18日 17:55:00 -0500
a = {
b = {
c = 22
}
}
--> semicolons shouldn't appear in table constructors, although you can
write a comma as a semicolon for backwards compatibility.
On 18-Aug-04, at 5:46 PM, Marc Nijdam wrote:
I'm not finding this in the book or the FAQ, so here goes:
a = {
b = {};
b.c = 22;
};
will fail with a "expected to close '{' at line 1" on Lua 5.0
According to the syntax definition in the reference manual this is
supposed to work. Am I missing something?