lua-users home
lua-l archive

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


David Jones wrote:
I'm always very loath to suggest or support more syntax, but how about if '#' on its on in an expression inside [] were to mean the length of the table being indexed. So you could go:

t[#+1] = value

It's pretty clear, and almost syntactically unambiguous.

It seems a sensible approach.

  Enrico