On 05/20/2010 09:14 AM, Pelle wrote:
On 05/20/2010 03:22 PM, Steven Schveighoffer wrote:
One thing I just thought of -- in dcollections, similar types can be
compared to one another. For example, you can check to see if a
HashSet is equal to a TreeSet. But that would not be possible without
interfaces.

-Steve

I'm sorry, but I think that's a misfeature. In my opinion, a tree is not
equal to a hash table, ever.

Yes. By the way, TDPL's dogma imposes that a == b for classes means they have the same dynamic type.


Andrei

Reply via email to