lua-users home
lua-l archive

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


D Burgess <db <at> werx4.com> writes:

: 
: The manual states that "in" is a reserved word.
: My question is whether it would be difficult to enhance the
: parser so that "in" could be used as a variable in (there we
: go again) some circumstances.
: 
: I find myself often coding table variables with a name of "in".
: 
: e.g.
:  counters = {in=1, out=2}
: 

As a workaround you could use:

   counters = { In = 1, Out = 2 }