More consistent, symmetric operator overloading.
更一致的、对称的操作符重载。
In Listing 2, you can see the operator overloading I set up in Listing 1 in action.
在清单2中,可以看到我在清单1中设置的操作符重载的效果。
As you've seen, operator AD hoc polymorphism, or operator overloading to the rest of us, can be quite powerful if carefully employed and documented.
可以看到,操作符的即时多态,或操作符重载,对于我们来说,如果小心使用和记录,会非常强大。
In this installment of Practically Groovy, I introduce you to Groovy's support for operator ad-hoc polymorphism, also known as operator overloading.
在实战groovy的这一期中,我将介绍Groovy对操作符即时多态(也称为操作符重载)的支持。
I remember asking this Gosling in one of my interviews of him why he left out operator overloading (I don't think that question and answer ended up getting published).
我记得在采访Gosling时曾问过他为何放弃操作符重载(我想该问题和答案还尚未公开过)。
Discusses changes to operator overloading.
讨论运算符重载的更改。
We'll learn more about operator overloading in the next chapter, but in this chapter we cover the assignment operator.
在下一章我们将进一步学习操作符重载,本章中我们先介绍赋值操作符。
If your programming language supports operator overloading, you should also provide an implementation of the equality and inequality operators.
如果编程语言支持运算符重载,则还应提供等号和不等号运算符的实现。
Operator overloading that works well with generics and built-in primitive types.
运算子多载,适用于泛型及内建基本型别。
Operator overloading - overloading operator allows the DSL to provide a natural syntax.
运算符重载——对运算符进行重载可以使DSL可以提供一个更为自然的语法。
Operator overloading allows new data types to be created that seamlessly integrate into the language.
运算符重载允许创建与语言无缝集成的新数据类型。
And no, contrary to what it might look like, this isn't operator-overloading.
与其外表相反,这并非操作符重载。
And no, contrary to what it might look like, this isn't operator-overloading.
与其外表相反,这并非操作符重载。
应用推荐