所有.NET语言都将支持运算符重载或C#,而托管C ++仅支持它吗?
The Common Language Specification does not enforce any rules in this regard on conforming languages. They should be able to use overloaded operators in various ways (either the language supports it or you'll do the method call yourself). A language is free to choose whether or not it should provide the ability to declare overloaded operators.
Not all languages will support it but many do. You also need to break the support down into 2 categories
VB.Net supports both and I believe IronPython and IronRuby do as well in a dynamic way.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.