Operator overloading in Nice
"Yauheni Akhotnikau" <[email protected]> Wed, 30 Jan 2008 15:59:02 +0300
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Organization | Intervale |
| Message-ID | <[email protected]> |
Hi,
I've seen that Nice has special syntax for defining operators. It is used
a lot in stdlib sources, for example:
public OpenRange<int> `..`(int begin, ?int end) ...
`..`(int begin, null) { ... }
public override Range<int> `..`(int begin, int end) { ... }
But I didn't see any mention about that in the Nice manual. Is operator
overloading is an official feature of the language? Or it is a part of
implementation and souldn't be used in user code.
--
Regards,
Yauheni Akhotnikau
Senior Programmer
Intervale
e-mail:[email protected] <mailto:[email protected]>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/