blob: 82e5a54db870f88b3a57a56ed1cab8e5b61397ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--
-- Bugs filed by irayo Jul-2008
--
--[[
This code showed lack of caching 'select', 'type' etc. in 'src/lanes.lua'.
]]
local function recurse()
print("level "..i);
if i > 10 then return "finished" end
require "lanes"
local lane = lanes.gen( "*", { globals = { ["i"]= i + 1 } }, recurse ) ()
return lane[1]
end
i = 0;
recurse()
|