Re: Operator overloading in Nice

"Daniel Bonniot" <[email protected]> Thu, 31 Jan 2008 13:16:24 +0100
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
Hi,


On Jan 30, 2008 1:59 PM, Yauheni Akhotnikau <[email protected]> wrote:
>         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.

You can use it in user code.

Daniel

-------------------------------------------------------------------------
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/