I've used Groovy's method Pointers for just this nefarious purpose in Listing 10.
在清单10中,我使用了Groovy的方法指针来做这件坏事。
Now, don't get me wrong: Method pointers aren't meant for hacking into code or obtaining references to people's cash!
现在,不要误会我:方法指针不是为了侵入代码或者获得对人们现金的引用!
The interesting thing about method Pointers is that their use can be an indication that the code violates the Law of Demeter.
关于方法指针,有意思的事情是:它们的使用可能就表明代码违反了迪米特法则。
Delegates are special types that encapsulate a method, similar to function Pointers found in other programming languages.
委托是封装方法的特殊类型,它类似于其它编程语言中的函数指针。
Method handles act as both function Pointers and as function combinators, allowing a built-in way to construct a call protocol flow from a caller to a callee.
方法句柄可以同时作为函数的pointer和combinator,允许用内置的方式建立一个从调用器到被调用者的调用协议。
The problems, such as fragments and Pointers, existing in this kind of memory management method, are presented.
文章指出了这种内存管理机制存在的问题,阐述了内存碎片问题和指针问题。
Null pointer dereference fault is ubiquitous in the program with pointers. It is difficult to locate fault sources adopting dynamic testing method.
空指针态引用故障在使用指针的程序中是普遍存在的,采用动态测试方法进行测试难以准确定位故障源。
By extending the contract-based safety analysis mechanism, a method for checking the safety problems of function pointers is presented in this paper.
文中扩充了基于契约的安全检查机制,提出了一种针对函数指针的安全检查方法。
Memory leak fault is ubiquitous in the program with Pointers. It is difficult to locate fault sources adopting dynamic testing method.
内存泄漏故障在使用指针的程序中是普遍存在的,采用动态测试方法进行测试难以准确定位故障源。
Select the method that the compiler USES to represent Pointers to class members.
选取编译器用来表示类别成员指标的方法。
Finally, the experiment shows that the method of synthetical recognition to Numbers, grates, and Pointers is very feasible.
通过实验可以看到,这种基于数字、刻度与指针进行综合识别的方法,具有良好的识别效果。
The others gave some pointers on improving the method of operation.
其他同志则出了一些点子来改进操作方法。
The others gave some pointers on improving the method of operation.
其他同志则出了一些点子来改进操作方法。
应用推荐