lua-users home
lua-l archive

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

Duncan Cross wrote:
On Jan 16, 2008 10:05 AM, Miles Bader <> wrote:
"Duncan Cross" <> writes:
I dunno, I don't really see that as a problem -- just say it's exactly
the same as any unary operator, and binds tightly.  It's no different
than -3+4, or as somebody else mentioned, fun "a".."b".
fun "a".."b" is invalid, though - the parser won't accept it. The
equivalent would be to only allow a single number parameter.

   $ lua
   Lua 5.1.2  Copyright (C) 1994-2007, PUC-Rio
   > function x (s) return s .. "*" end
   > print (x "a".."b")

But isn't

> print (x "a".."b")

processed as

> print (x ("a").."b")

not as

> print (x ("a".."b"))

Where do arguments for the function call end?