summaryrefslogtreecommitdiff
path: root/src/library/scala/Proxy.scala
Commit message (Collapse)AuthorAgeFilesLines
* Cull extraneous whitespace.Paul Phillips2013-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | One last flurry with the broom before I leave you slobs to code in your own filth. Eliminated all the trailing whitespace I could manage, with special prejudice reserved for the test cases which depended on the preservation of trailing whitespace. Was reminded I cannot figure out how to eliminate the trailing space on the "scala> " prompt in repl transcripts. At least reduced the number of such empty prompts by trimming transcript code on the way in. Routed ConsoleReporter's "printMessage" through a trailing whitespace stripping method which might help futureproof against the future of whitespace diseases. Deleted the up-to-40 lines of trailing whitespace found in various library files. It seems like only yesterday we performed whitespace surgery on the whole repo. Clearly it doesn't stick very well. I suggest it would work better to enforce a few requirements on the way in.
* Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
|
* Having Proxy extend Any as well.Paul Phillips2012-02-041-3/+2
|
* Eliminated ScalaObject.Paul Phillips2012-02-031-1/+2
| | | | "This too shall pass."
* intermediate work towards a new starr for value classes.Martin Odersky2012-02-031-4/+6
|
* Helping Proxy equal itself.Paul Phillips2011-09-101-4/+3
| | | | | Fix for bumpy proxy equals. Closes SI-4807, no review.
* cleanups (scaladoc 2, deprecation warnings, tra...michelou2011-07-131-4/+4
| | | | | cleanups (scaladoc 2, deprecation warnings, trailing blanks)
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Eliminated duplication among the Rich* wrappers...Paul Phillips2010-11-011-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminated duplication among the Rich* wrappers, careful not to impact performance on RichInt in particular. Attempted to make Proxy a little bit typier. Proxy creates an asymmetric equals method by design so it's unfixable in that regard, but achieved a minor miracle anyway by making the Rich* wrappers behave symmetrically. Note: said miracle involved having the wrappers extend ScalaNumber in order to induce the special == semantics. This in turn led to implicit conversion conflicts with the boxed types on methods like .intValue(). Resolved by moving the Rich* implicits into LowPriorityImplicits. This of course also removed the intentional ambiguity which prevents primitives from automatically becoming AnyRefs. Solved THAT one by creating dedicated, laser-precise ambiguity creating implicits in Predef which exclude only the AnyRef methods. Although this is admittedly less than elegant, it is still better than it was: this way it is direct and explicit rather than depending upon the "implicit implicit conflict" where the barrier to promotion is intermingled with the definitions of wrapper classes. (See the history of BoxedUnit/RichUnit for a good example of why these concerns require separation.) It's all worth it: assert(intWrapper(5) == 5) assert(5 == intWrapper(5)) assert(5 == (5: java.lang.Integer)) assert((5: java.lang.Integer) == 5) assert((5: java.lang.Integer) == intWrapper(5)) assert(intWrapper(5) == (5: java.lang.Integer)) Review by community.
* Altered a bunch of places which call hashCode t...Paul Phillips2010-05-211-1/+1
| | | | | | Altered a bunch of places which call hashCode to call ## instead. No review.
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* fix cyclic reference errors in scaladoc.Lukas Rytz2009-11-041-2/+0
|
* Proxy.equals catches null case (fix for #2366)Ingo Maier2009-09-231-1/+3
|
* Massive redesign so that: scala> "hi" == "hi".r...Martin Odersky2009-09-101-4/+1
| | | | | | Massive redesign so that: scala> "hi" == "hi".reverse.reverse gives: res0: Boolean = true Preparing to do similar things to arrays.
* Updated copyright notices to 2009Antonio Cunei2009-01-091-1/+1
|
* fixed #406michelou2008-01-311-2/+2
|
* added node info for blocksmichelou2007-10-081-4/+4
|
* Added rich string builder (a random access sequ...Sean McDirmid2007-07-171-3/+6
| | | | | | | | | | | | | | | | | | | | | | | Added rich string builder (a random access sequence, mutable buffer). Fleshed out compat.StringBuilder some more to support this. Rolled back buffered iterator to its simple "head" method form, added advanced buffer iterator for multi-lookahead peak (call buffered.advanced for advanced version) Made string a random access seq. Deprecated utility fromString methods for strings that no longer make sense (better alternatives in RichString). Also, ensured that many seq operations return strings. Changed deprecated accesses from XML library. Made Stream a sub-class of Seq.Projection rather than a direct subclass of Seq to support the lazy nature of Seq. Deprecated type aliases in Predef, deprecated direct access to Integer through Predef. Added to to Range.
* Removed implicit use of any java.lang classes f...mihaylov2007-03-261-0/+2
| | | | | Removed implicit use of any java.lang classes from the library
* cleaned up code in library/scala/**/*.scalamichelou2006-08-311-5/+5
|
* performed some renamings in the compiler & libraryMartin Odersky2006-03-091-1/+1
| | | | | | | All -> Bottom AllRef -> Null mixin class -> trait
* Use 'mixin class' instead of 'trait'mihaylov2006-03-031-1/+1
|
* Rearranged header and updated copyright messagemihaylov2006-03-021-2/+4
|
* Switching to the new build system and to the ne...Gilles Dubochet2005-12-191-0/+26
Switching to the new build system and to the new build system. This is a MAJOR commit, so be careful when updating.