[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Nested table syntax
- From: Jamie Webb <j@...>
- Date: Thu, 19 Aug 2004 00:31:46 +0100
On Wed, Aug 18, 2004 at 04:22:11PM -0700, Marc Nijdam wrote:
> Rici Lake wrote:
>
> >a = {
> > b = {
> > c = 22
> > }
> >}
> >
> >--> semicolons shouldn't appear in table constructors, although you
> >can write a comma as a semicolon for backwards compatibility.
>
>
> I know the above syntax works, but why doesn't the syntax I use below?
Why would it? It's nonsensical; trying to do something imperative
inside a declarative construct. And the syntax definition does not
permit it. You're misreading.
-- Jamie Webb