lua-users home
lua-l archive

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


What happens in Lua 5.2 if you type to the standalone interpreter:

       for k,v in ipairs"Hello, World!" do print(k,v) end

(a) bad argument #1 to 'ipairs' (table expected, got string)
(b) attempt to index a string value
(c) an infinite loop
(d) nothing
(e) depends on which minor release you are running
(f) none of the above

And in Lua 5.3?