lua-users home
lua-l archive

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

On 10/20/11 5:37 PM, Wolfgang Pupp wrote:
If we are already discussing syntax-

I always wondered why
is invalid and needs to be written as

Would the short form introduce ambiguities? Or is it more one of those
"it just turned out that way"- things?

Just guessing here, but if one allows

"%i":format(i) -- the following should also be allowed:

"%i".format(wellWhatever) -- properly written:
"%i".format("%i", i) -- but it does not matter

as "%i".something is probably ambiguous to the parser,
or maybe left out as someone might accidently forget to put one more
dot when concatenating:


There's probably an answer somewhere here in the mailing list, but
not one that can be easily found