|
|
||
|
Jamie Webb wrote:Hmmm, I agree it's non-sensical if you think of it as imperative. It just appears asymetrical when at the top level you can doOn Wed, Aug 18, 2004 at 04:22:11PM -0700, Marc Nijdam wrote: a = { b = {} }; a.b.c = 22 but not in the table declaration, which to me looks the same as a nested 'top' level. I guess that's where I'm wrong. You are right about misreading the bnf though. field ::= `[´ exp `]´ `=´ exp | name `=´ exp | exp
the only syntactically correct way to try to do what I want is to do the following:
a = {
b = {};
[b.c] = 22
}
which give "b not defined globally". Placing 'a' in front of this shows
why this is declarative.. a is not defined yet.Thanks for the slap, feel much better now :-) --Marc |