【发布时间】:2014-03-07 18:52:28
【问题描述】:
假设我有一个返回闭包的函数:
--- 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 中是否有标准方法来记录上述构造?
【问题讨论】:
-
你能举个例子说明文档是什么