- if #arg ~= 4 then
- error("Wrong number of arguments (got " .. #arg ..
- ", expected 4: nb_tasks comp_size comm_size slave_count)")
+ if select("#", ...) ~= 4 then
+ error("Wrong number of arguments (got " .. select("#", ...) ..
+ ", expected 4: nb_tasks comp_size comm_size slave_count)")