lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:

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


[. .] would break
d={}
d[.50]=4
print(d[.50])

My favourite is:
[= ............. =]

Looks nice!

/Erik