[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Multiple values returned or vararg expression in numeric for loop
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Thu, 13 Sep 2012 16:10:55 +0400
Why this simple code
for i = 1, 5 do print(i) end
cannot be written in more general form ?
local function f() return 1, 5 end
for i = f() do print(i) end
-- Egor