[Gtk-sharp-list] overloading operator ==?
Vladimir Vukicevic
vladimir@pobox.com
20 Oct 2002 00:58:10 -0700
On Sat, 2002-10-19 at 12:59, Miguel de Icaza wrote:
> Hello!
>
> > Maybe we should have an overloaded == operator for Object.cs, so we
> > can compare objects?
>
> I have now committed this code: operator == and operator != to CVS.
Hmm, I just realized.. why is an overloaded operator == needed at all?
With the refouncting/GetObject()/etc. plan in place, there should never
be the case of two different gtk#/C# objects existing with the same
native _obj pointer -- there's a one-to-one mapping between the two. So
the base System.Object equality should suffice...
- Vlad
--
Vladimir Vukicevic <vladimir@pobox.com>