@ -33,4 +33,9 @@ function assert(value, callback)
if not value then
error(callback())
end
--+ Calls func using the provided arguments, deepcopies all arguments
function call_by_value(func, ...)
return func(unpack(modlib.table.deepcopy{...}))