). 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
精彩评论