Possible bug in createThread in lib.lua?
Posted: Tue Apr 16, 2013 8:08 am
When wrapping the thread function in createThread it seems to me the possible arguments are lost and not transfered to the thread function, I suspect the:
In reality should be as follows to pass arguments to the given function?
-dx
Code: Select all
local wrapped = function (...) coroutine.yield(); func(); end;
local co = coroutine.create(wrapped);
local status, err = coroutine.resume(co, ...);
Code: Select all
local wrapped = function (...) coroutine.yield(); func(...); end; -- NOTE: "..." in func argument
local co = coroutine.create(wrapped);
local status, err = coroutine.resume(co, ...);