lua-users home
lua-l archive

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


On 21/09/2010, at 6:37 PM, Jonathan Castello wrote:

> While not exactly about table initializations, one thing I've
> occasionally wanted was to be able to implicitly index the current
> environment. In a table you can do {[a + b] = c}, but it would be nice
> to be able to do [a + b] = c as a normal statement. Likewise with
> accessing: x = [y].


Wouldn't that cause ambiguous syntax problems?   Would "a = b [c]:d()" be one or two statements?

Cheers,
Geoff