开发者

Disable / Enable Functions via Compiler Argument

). You know, in C++, C# and other educated languages, we got the chance to enable/disable the availability of some code in a certain class via compiler arguments. Take #if and #endif for example. You give an argument to the compiler, for example PROJECT_TDD_MODE, when a certain bunch of function would exist in the final code, but without defining that, or def开发者_Python百科ining it as FALSE, the code would not exist in the compiled result.

Why don't we have something like this in AS3? ::- (


Conditional compilation is available in Actionscript too. Take a look at http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜