如果Lua程序存在错误,那么该错误会出现在堆栈的顶部吗?

我一直在查看 Lua 的源代码,我认为这就是它的工作原理。

原文链接 https://stackoverflow.com/questions/4294635

点赞
stackoverflow用户271475
stackoverflow用户271475

是的。在Lua中编程 对于此类问题是一个非常好的资源。

2010-11-28 00:18:22
stackoverflow用户522399
stackoverflow用户522399

Lua 和 C 使用堆栈来交换参数。许多脚本语言都使用这种方式与 C 程序通信。

Lua and C use a stack to exchange arguments. Many script languages use this way to communicate with C program.
2010-11-28 06:12:47