4 ms·
> How would you expect a programmer to ask "do these two pointers hold the same address?" In Java and C#, you rarely need to ask this question. In fact, the .
by styfle 9y ago
> How would you expect a programmer to ask "do these two pointers hold the same address?"
In Java and C#, you rarely need to ask this question.
In fact, the .NET Framework overloads String, DateTime[0], etc so you can use == for almost all comparisons.
[0]: http://stackoverflow.com/a/1205462/266535 http://stackoverflow.com/a/1205462/266535