lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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