Glossary entry (derived from question below)
Jun 18, 2011 00:49
13 yrs ago
English term
exposes
English to Chinese
Tech/Engineering
IT (Information Technology)
Wax framework
The object-oriented model
Another problem with Lua is that it does not have an inheritance system like Objective-C. There are no classes at all in Lua. To work around this problem, Wax ***exposes*** a function that goes at the top of every Wax Lua file: waxClass. In the default AppDelegate.lua, the line looks like this:
waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}}
专业说法叫什么?
Another problem with Lua is that it does not have an inheritance system like Objective-C. There are no classes at all in Lua. To work around this problem, Wax ***exposes*** a function that goes at the top of every Wax Lua file: waxClass. In the default AppDelegate.lua, the line looks like this:
waxClass{"AppDelegate", protocols = {"UIApplicationDelegate"}}
专业说法叫什么?
Proposed translations
(Chinese)
4 | 显示 | Jinhang Wang |
2 | 公开 | Ambrose Li |
Proposed translations
11 mins
Selected
显示
display 的意思
4 KudoZ points awarded for this answer.
Comment: "谢谢!"
4 hrs
公开
不太清楚中文的叫法,但是 expose 在这里是 object oriented programming 或者 abstract data type 一类东西的术语,指提供一种方法来使用一个/一些本来是私有的东西(类如函数、变数、界面等等)
Discussion
Have a look at the top line, the one beginning with waxClass. This line is key. It declares a Lua class that bridges to CocoaTouch and declares the protocols it implements. The remainder of the code is the implementation of the constructor and the callbacks for the protocols.
注意文中對第一行 (waxClass) 的解釋:這行的功用是將 Lua 代碼和 CocoaTouch 連起來 (bridge),換句話說,就是將一些本來無法存取的東西「expose」了出來。這完全是代碼之間的溝通,和顯示沒有任何關係。