lua-users home
lua-l archive

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


>>>>> "AD" == Alex Davies <alex.mania@iinet.net.au> writes:

 AD>   local a = (1, 2, 3)[3]

it would be better to have

local a = {1, 2, 3}[3]   -- unexpected symbol near '[', why?

ps. there is weird solution: ({ 1,2,3 })[3]

-- 
Yours sincerely, Eugeny.
Doctor Web, Ltd. http://www.drweb.com
+79119997425