Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于在 lua 中声明函数的问题。
我的印象是公共函数被声明为:
abc = function() end
本地/私有函数为:
local abc = function end
但我不确定这个符号是什么:
function abc() end
如参考手册的 2.5.9 所示,
该声明
function f () body end
翻译成
f = function () body end