应注意避免或限制使用内联代码。
You should consider avoiding or limiting the use of inline code.
最终得到的包装器函数由于太长而不作为内联代码例子显示,但它能够出色地执行。
The resulting wrapper function is too long to present inline as a code example, but it seems to work pretty well.
我发出错误信息,将返回值替换为0(请记住:每个内联代码块都返回一个对象)。
I emit an error message and replace the return value with 0, instead (remember: every inline code block returns an object).
本主题描述代码隐藏的要求以及在XAML中的代码的可选内联代码机制。
This topic describes requirements for code-behind as well as an alternative inline code mechanism for code in XAML.
以这种方式执行的授权检查将比内联代码慢一点,尤其是在通过单独的进程来调用的时候。
Authorization checking performed in this way will be somewhat slower than inline code, particularly when invoked through a separate process.
该工具使用很简单:搜索整个网页的内嵌代码,为开发人员提供内联代码前后关系的信息。
The usage of the tool is simple: it searches the entire web page for inline code and provides the developer with contextual information about the inline code it finds.
与老式的ASP风格的视图引擎不同,视图与内联代码之间的界限变得相当薄,很多语言从语法上就无法实现。
Unlike the older ASP-style view engine, the boundaries between view and inline code are quite subtle and it is quite possible that many languages are syntactically incompatible.
和在页面中使用控件的传统开发方式不同的是,开发人员会发现他们需要使用大量的内联代码,就好像传统的ASP应用一样。
Instead of controls, developers will find themselves using a lot of inline scripting that looks like Classic ASP.
使元数据与它引用的实际代码实现内联,从而提供引用的本地性,使所有事物都汇集在一个地方。
Having the metadata inlined with the actual code it references provides locality of reference, so that everything is in one place.
默认的选项是在头文件和实体文件中都为内联函数生成代码。
The default option generates code for the inline function in both the header and body files.
除了将元数据与代码内联之外,还可以用其他方法定义元数据。
You can define metadata in other ways besides keeping it inline with the code.
UML到 C++ 的转换为生成一个内联函数的代码生成提供了两个选项。
The UML to C++ transformation provides two options for generating code for an inline function.
表1中的代码片段演示了内联方法风格的简单性和易用性。
Table 1 provides a snippet of code to demonstrate the simplicity and usability of inline methods.
动态编译器(尤其是在进行方法内联之后)通过许多方法来判断死代码。
Dynamic compilers, especially once method inlining takes place, have many more ways to determine that code is dead.
列表3.在头文件中为一个内联函数所生成的代码。
Listing 3. Generated Code for an inline function in header file.
列表4.在实体文件中为一个内联函数所生成的代码。
Listing 4. Generated Code for an inline function in body file.
内联注释,通常环绕在代码周围,用于开发者为其他开发者给出提示。
In-line comments, generally scattered around the code to indicate a note from developer to developer.
列表5.使用DINLINE_HEADER选项为一个内联函数生成代码。
Listing 5. Generated Code for an inline function using the DINLINE_HEADER option.
详尽描述需要使用内联编程风格的代码的各个方面。
A description of the various aspects of code required for inline methods.
JSNI可以视为内联汇编代码的web对等物,可以用来。
JSNI can be considered the Web equivalent of inline assembly code. You can use it to.
通过使用基于schema的配置,大多数Xml编辑器都会提供代码补全及内联文档的功能。
Using schema-based config also gives developers code completion and inline documentation in most Xml editors.
使用您脚本的用户不会看出其中的不同,只不过第一次调用使用内联的代码时,程序将多花一点时间来完成对嵌入代码的编译。
The user of your script will never know the difference, except that the first invocation of Inline-enabled code takes a little time to complete the compilation of the embedded code.
唯一需要使用内联注释是在你编写了非常复杂的算法,你需要在代码旁边记录说明你的想法。
The only legitimate use of inline comments is when you have some very complex algorithm that you need to have some thoughts about beside the code.
否则,内联注释的出现表明你写的代码需要解释说明,意味着这些代码需要被重构。
Otherwise, the presence of inline comments indicates that you've written code that needs explanation, meaning that it cries out for refactoring.
代码中的内联函数会导致莫名其妙的代码,甚至是更大的管理灾难。
Inlining functions in code results in unintelligible code and even bigger management horrors.
其他代码要么是内联函数(显然可以由编译器进行内联),要么是可以由编译器轻松消除分支的代码。
The other possible branches in the code are either inline functions (which can, obviously, be inlined by the compiler), or are easily branch-eliminated by the compiler.
HTML4用5个不同的内联元素表示略有差异的计算机代码:var、code、kbd、tt和samp。
HTML 4 has five different inline elements to represent subtly different variations of computer code: var, code, KBD, tt, and samp.
这个功能的最大好处就是方法调用的内联化;但是,我们也要明白JVM并不能够在程序执行前静态地完成这项工作,相反,一些其他的优化技术简化代码直到产生内联方法。
The single biggest benefit is the in-lining of method calls; but this can't be done statically ahead of time. Instead, other optimisations simplify the code until the method in-lining can occur.
因此,不能使用粘合代码的-q inlglue内联选项来编译可识别键的内核扩展。
Hence, a key-aware kernel extension must be compiled with the -q noinlglue option for glue code.
可以看出,编译器仍然删除接口并内联 getName() 方法的每个实现,这仍然是非常优化的代码。
As you can see, the compiler still removes the interface and still inlines each implementation of the getName() method. This is still quite optimal code.
应用推荐