然后,lua_setglobal函数将栈顶的值赋给一个有名称的全局变量。
The lua_setglobal function then assigns the top value on the stack to a named global variable.
在碰到退出函数时,当前的活动函数就会返回,并释放栈顶元素。
When an exit address is encountered, the current active function has returned and the top element on the stack is discarded.
很久以前,函数被称为“子程序”(我知道,我这样说证明我已经老了!)管理复杂性的主要方式之一是自顶向下的编程模式。
A long time ago, when functions were called "subroutines" (I'm dating myself, I know), one of the main ways to manage complexity was top-down programming.
应用推荐