lua-users home
lua-l archive

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


> I just posted a small patch to the wiki that allows C-style string lexing,
> where string literals separated by whitespace are collected as a single
> string.

This will break expressions like f "A" "B", which is interpreted as
f("A")("B"). The program below prints "A<TAB>and<TAB>B". Try it in your
patched version...

   function f(x)
	   return function (y)
		   print(x,"and",y)
	   end
   end
   f"A" "B"