[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: ipairs: a subtle function
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 29 Dec 2017 15:31:30 +0200
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?