【发布时间】:2015-11-10 03:51:11
【问题描述】:
这是我想要做什么的原始想法。
function a(str)
print(str)
end
function b(str)
print(str)
end
function c(str)
print(str)
end
function runfunctions(...)
local lst = {...}
lst.startup()
end
local n1 = a('1')
local n2 = b('2')
local n3 = c('3')
runfunctions(n3,n1,n2)
很少有函数必须作为参数传递给其他函数并按顺序执行。一旦它们中的任何一个被执行,它就不能在毫秒内执行,所以 next 将被执行,以避免只执行其中的几个并且不要运行到最后一个。
【问题讨论】: