lua-users home
lua-l archive

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


> In that case, can't you use "-" instead of "*" just to use fewer
> (different) characters?

Several characters could be used instead of `*' (`.', `:', `=', ...),
but `-' does not seem a good choice, because both `[-' and `[--'
are valid sequences in Lua:

  a = b[-i]
  x = b[--[this is an old-style comment]
        i]


-- Roberto