[Gtk-sharp-list] overloading operator ==?
20 Oct 2002 14:00:23 -0700
On Sun, 2002-10-20 at 12:30, Miguel de Icaza wrote:
> > 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...
> In this particular case, I ran into the problem when retrieving the same
> value through two different places:
> (or something like that) that returns the GdkWindow to one of the
> borders (we use a border on the right in the debugger).
> And the other window coming from the event handler. Grep for `Equals'
> in the debugger/frontend/gui/*.cs to see where and why its being used.
Hmm, i'll take a look.. it shouldn't matter though; anything that has
the same c-land pointer should turn into the same C# object. There was
a bug until about a week ago that prevented this from happening
Vladimir Vukicevic <firstname.lastname@example.org>