blob: 0187a158c2301b610c724a420e7c8de48f419818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
local lanes = require "lanes"
--
-- 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
--local lanes = require "lanes"
local lane = lanes.gen( "base,string,lanes_core", { globals = { ["i"]= i + 1 } }, recurse ) ()
return lane[1]
end
i = 0;
recurse()
|