假设我有一个返回闭包的函数:
--- Agent constructor
-- @return A function describing the behavior of the agent
Agent = function(data)
return function(arg1, arg2, ...) end
end
然后我有一个接收该闭包的变量:
SugarAgent = Agent{ metabolism=5, health=3 }
LuaDoc 中是否有标准方法来记录上述构造?