Latest post of the previous page:
Человек может и не пользуется фарам. Но охотно идёт на контакт.В любом случае я не вижу пока что именно вы хотите с ним обсуждать.
Latest post of the previous page:
Человек может и не пользуется фарам. Но охотно идёт на контакт.Code: Select all
local function corostub(stub)
return function(f, ...)
return stub(function(...)
on()
return f(...)
end, ...)
end
end
local cocreate, cowrap = coroutine.create, coroutine.wrap
local cocreate_dbg, cowrap_dbg = corostub(cocreate, cowrap)
local function coro(set)
if set == nil then
if coroutine.create==cocreate then
coroutine.create, coroutine.wrap = cocreate_dbg, cowrap_dbg
end
elseif set == true then
return cocreate_dbg, cowrap_dbg
elseif set == false then
return cocreate, cowrap
end
end
coroutine.wrap
неизбежно становится nil
в функции coro(set)
Вероятно в выложенный релиз закралась ошибка, в данный момент у меня эта строка выглядит так:
local cocreate_dbg, cowrap_dbg = corostub(cocreate), corostub(cowrap)
.