Beware overloaded operators in .net (for java programmers)
The following screenshot will be enough to make a fool of myself. As one can see the to variable is NULL. Why am I inside the if body then?
I don’t know. I tried all kinds of variations of this piece of .. code. It turns out that the == operator is overloaded for the type Station. I have a solid java and some c++ background and it took me some time to understand what’s wrong. Java programmers beware.
Category: Development