|
On Thu, Oct 20, 2011 at 6:18 PM, KR <krunal.rao78@gmail.com> wrote: > Maybe a stupid question, but what is the reason for which the following is not > allowed? > > local t = {} > t.1 = 3 -- why not t["1"] = 3 ? Because it's ambiguous? A newer Lua coder might expect instead: t.1 = 3 --> t[1] = 3 -- - Patrick Donnelly