有没有办法在BREW 3.0平台上使用Lua?
看起来 BREW 4.0 将包含 Lua。 但是是否可以在较旧的 BREW 3.0(甚至 BREW 2.0)上使用 Lua?
It looks like BREW 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们不会等待 BREW 4.0。 我们现在正在编写 LuaBREW 实现。
We don't wait BREW 4.0. We are writing our LuaBREW implementation right now.
这是可能的,但您必须将 lua 解释器源代码链接到您的应用程序源代码并包装 BREW API 函数才能从 lua 脚本使用它们。
查看 LuaBREW 项目作为我上面简要解释的方法的示例。
It is possible, but you will have to link lua interpreter source code to your application source code and wrap BREW API functions in order to use them from lua scripts.
Check out LuaBREW project as an example of approach I briefly explained above.
我们这样做了。 我将 Lua 移植到 BREW,将其变成了 uiOne actor。 效果很好,花了大约 3 天的时间才能正常工作,主要是在演员方面。 据我记得,其中没有任何内容不能在 BREW 2.1 上运行。
We did this. I ported Lua to BREW turning it into a uiOne actor. Worked well, took about 3 days to get it working properly, mostly on the actor side. As far as I recall there was nothing in there that wouldn't have worked on BREW 2.1.