作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
假设我有一个返回闭包的函数:
--- 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 }
最佳答案
您可以通过指定文档名称并手动输入来实现:
--- This is a SugarAgent
-- @name SugarAgent
-- @class function
-- @return Some value
SugarAgent = Agent{ metabolism=5, health=3 }
关于lua - 如何使用 LuaDoc 记录闭包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22258352/
假设我有一个返回闭包的函数: --- Agent constructor -- @return A function describing the behavior of the agent Agen
问题都在标题中:如何将 LuaDoc 与 LuaForWindows 一起使用? 在我的 Lua 安装中,我有一个 luadoc_start.bat,但命令窗口一打开就关闭。从那里我不知道我还能做什么
问题都在标题中:如何将 LuaDoc 与 LuaForWindows 一起使用? 在我的 Lua 安装中,我有一个 luadoc_start.bat,但命令窗口一打开就关闭。从那里我不知道我还能做什么
我是一名优秀的程序员,十分优秀!