Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added ## method to Any as our scala hashCode me... | Paul Phillips | 2010-02-28 | 1 | -0/+15 |
Added ## method to Any as our scala hashCode method which provides consistent answers for primitive types. And I'm sure we're all tired of new starrs, but it's hard to add a method to Any without one. This patch only brings ## into existence, but nothing calls it yet. // some true assertions scala> assert(5.5f.## == 5.5f.hashCode) scala> assert(5.0f.## != 5.0f.hashCode && 5.0f.## == 5L.##) No review. (Already reviewed by odersky.) |