lua-users home
lua-l archive

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

On Fri, Oct 21, 2011 at 10:54 AM, KR <> wrote:
> I understand, but what is the exact rule for what is allowed after the dot? Same
> rules as names for variables?

That's exactly it, 1 is not a valid identifier, so you cannot use the sugar that
says that t.x == t["x"].

 It's consistent with things like { [0] = 1 } in table constructors

steve d.