Of course, because the userdata originates in c, there are no pre-defined operations for userdata in Lua.
当然,由于用户数据源自于c,因此在Lua中也没有对用户数据预定义操作。
Implementing the core logic of a program in Lua, rather than in c, might well dramatically reduce development time.
用Lua而不是c来实现程序的核心逻辑可以大大减少开发时间。
The third, and most flexible, is to mix and match these approaches, using Lua to script some actions, and code in C to manage others.
第三种方式,也是最灵活的方式,是混合上述两种方式,使用 Lua 脚本编写一些动作,而用 C 代码管理其他部分。
应用推荐