問題描述
有沒有辦法在 BREW 3.0 平台上使用 Lua? (Is there a way to use Lua on BREW 3.0 platform?)
看起來 BREW 4.0 將包含 Lua。但是是否可以在舊版 BREW 3.0(甚至 BREW 2.0)上使用 Lua?
參考解法
方法 1:
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.
方法 2:
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.
方法 3:
We don't wait BREW 4.0. We are writing our LuaBREW implementation right now.
(by Maxim、realsugar、Airsource Ltd、Ringoman)