lua-users home
lua-l archive

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

This may have been discussed before, but I couldn't easily find it in
the archives.

This is illegal in Lua 5:

	t = { 1="hey", 2="ho" }

It must be written like this:

	t = { [1]="hey", [2]="ho" }

The question is why.  I assume there is some ambiguity that is being
addressed here, but I can't see it.