odersky
8bfe94c595
Fixed #2545 . Fixed problem with cyclic dependcies when adding package objects. Prepared for module expansion to lazy vals.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19375 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-02 16:48:56 +00:00
imaier
44b5142d4d
Fixed remove/clear/update issues in BufferWrapper and layout map.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19374 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-02 16:32:01 +00:00
rompf
f4b937c0b8
fixed problem with Vector.dropRight, added additional test case
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19370 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-02 06:57:38 +00:00
rompf
0a2b54e817
Vector improvements, now doing a lot less copying for single element appends/updates
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19369 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-02 06:57:36 +00:00
imaier
15231a724a
Synchronize trunk with local changes:
...
* Fixes for #2452 , #2036 , #2491
* More comments
* Added paint methods
* Added convenience methods and constructors
* Deprecated UIApplication classes, replaced by SwingApplication classes
* Replaced case class inheritance by unapplies
* Introduced type aliases for AWT classes in package object
* Refactored RichWindow hierarchy
* Some minor code cleanup
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19368 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-02 06:05:02 +00:00
extempore
f839c44d56
Some structural improvements to Either and Option which
...
leverage recent awesomeness in constraining type parameters.
In Either I was able to define joinLeft and joinRight on the
instance rather than on the object, and while I didn't manage
that directly with merge, it can at least be accomplished
via implicit as endorsed by martin 25/Jun/09 on scala-internals.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19364 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-01 17:29:19 +00:00
milessabin
2d643da871
Corrected comment contents.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19361 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-11-01 15:47:28 +00:00
plocinic
1bbcb7aa19
Proper fix for #2280
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19357 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-30 19:59:34 +00:00
phaller
af00679e88
Fix for spurious timeouts in partest (as observed in latest scala-nightly-args).
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19356 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-30 13:24:47 +00:00
milessabin
b4f031e71d
Added -Ybuilder-debug:[none,simple,refined] option for testing the interactive build manager; added support for reporting comments during compilation; unbroke the test.positions build target.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19355 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-30 13:05:17 +00:00
rompf
7461f1b325
separated Vector impl from IndexedSeq
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19354 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-30 07:51:23 +00:00
rompf
14bc60bfd6
fixed 2544, reimplemented SeqLike.indexWhere, segmentLength and lengthCompare in terms of iterators instead of foreach and breaks
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19353 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-30 07:51:19 +00:00
milessabin
a2c9588ed9
Reverted [19310] ... it trips #2532 and #2533 building scalac.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19350 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-29 22:03:58 +00:00
rytz
02483ce2e4
AnnotationInfo.pos no longer in constructor. Reverts most of r19273.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19348 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-29 14:02:06 +00:00
moors
aa1774092d
added -Yhigher-kinded-raw switch as temporary workaround for #2454
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19337 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-29 09:13:13 +00:00
odersky
dc0da4e9bd
changed standard library so that it does not rely in scala package object in initial bootstrap of Predef. Disabled reading scala package during that bootstrap. This is an attempt to solve the cyclic reference errors in #2501 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19334 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 23:04:03 +00:00
extempore
88e0d5bf26
Fix for some accidentally enabled logging.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19333 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 20:23:15 +00:00
extempore
032813b0c1
Whole bunch of code for people interested in equality.
...
This includes four command line options you can use to
alter equality semantics and the various levels of babbling
and panicking which the runtime has to offer when confronted
with a boxed primitive comparison.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19332 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 20:10:54 +00:00
plocinic
e28ec6cf89
Fix for #1909
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19331 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 17:06:48 +00:00
odersky
7f662011d4
fixed typo
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19321 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 17:01:27 +00:00
odersky
f3fa06fdd7
Fixed #1342 . Improved error message when `=' forgotten from method def with return type.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19320 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 14:41:00 +00:00
extempore
80f751aa72
The final, tear-inducingly simple implementation of
...
shape preserving shuffle.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19319 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 14:15:32 +00:00
extempore
b6e9c997e8
Made classpath do more advanced *-globbing. Now instead
...
of all or nothing you can give a java regexp and it will
only use matching jars, example: scala -cp 'foo*bar*.jar'
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19316 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 00:33:21 +00:00
extempore
9bbbe7c838
In a stunning breakthrough, shuffle preserves the shape
...
of the container.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19315 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-28 00:33:09 +00:00
phaller
d2876ba6bc
Improves Enumeration to obtain names of values through reflection. This addresses those parts of #2111 that we agreed on in the Scala meeting.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19311 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-27 18:10:35 +00:00
plocinic
f9b8ca75b2
Fix for #2280
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19310 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-27 15:53:20 +00:00
odersky
f59603f59e
Fixed #2494 , plus some reorganization of swing imports
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19309 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-27 13:01:17 +00:00
moors
2eb123a53d
fixed bug in Stream::flatMap (still optimised as it was needed for correctness --> added regression tests for corresponding tickets)
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19307 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-27 10:23:01 +00:00
phaller
be50e335f1
Removed old fork-join library. Fixed build.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19306 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-27 09:43:44 +00:00
phaller
7510f9ad8c
Fix and test for #2214 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19301 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 22:50:56 +00:00
rytz
2c58ebcca2
fixes separate compilation on .net
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19299 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 22:17:15 +00:00
phaller
a459cb1dfc
Made scala.util.matching.Regex serializable. Fix for #2309 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19296 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 21:31:39 +00:00
phaller
fb8922192d
Reverting unwanted parts of last commit.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19295 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 21:07:22 +00:00
phaller
809b8f4f16
Second half of fix and tests for #1518 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19293 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 21:01:12 +00:00
extempore
f083dc39d8
Modifications to the five accumulated ant-parasite files which are
...
slowly driving me mad by being recompiled on every single run.
One file renamed, one moved to the right directory, two given
dummy implementations since they're completely commented out, and
the actors package object changed to apply to scala.actors
rather than _root_.actors.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19292 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 20:56:32 +00:00
extempore
5f9f906158
The arrival of scala.Zero. This adds nothing to the
...
existing codebase. What is it good for then? It's good
for nothing. Thank you, I'll be here all night.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19291 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 20:56:14 +00:00
phaller
c421c018aa
First half of fix for #1518 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19290 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 17:21:52 +00:00
extempore
005180cbed
Fix for #2528 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19289 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 17:08:23 +00:00
extempore
f7747cca30
Fix for #2529 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19288 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 17:00:19 +00:00
rytz
d6ef73c9a2
new classpaths. cleaned up scopes. removed scope kinds. cleaned up symbol loading, integrated msil types, fix separate compilation for msil. Symbol.sourceFile only set for classes which are being compiled.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19285 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-26 09:56:33 +00:00
extempore
1b2fcb0c1e
Attempting to unbreak fsc (can't reproduce the problem so can't
...
be entirely sure.)
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19278 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 19:00:29 +00:00
milessabin
d147ee8db9
Suppression of a possible NPE which is almost certainly a side-effect of an earlier error. This change is better than the status quo, but clearly there's work to be done here.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19275 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 17:19:16 +00:00
milessabin
c360154267
Export scala.tools.nsc.transform so that various useful things (eg. OverridingPairs) are accessible.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19274 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 17:16:09 +00:00
milessabin
0e9e3a8368
Add positions to AnnotationInfo for use by IDEs and other tools.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19273 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 17:12:45 +00:00
phaller
fd3e9a33d6
Fix and test for #2515 .
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19267 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 08:31:33 +00:00
extempore
fed2a7e582
Deprecation patrol. Just imagine, someday we'll be able to
...
compile scalac with -deprecation and not cause any machines
to catch fire. Most of the remaining warnings are glancing
furtively at Tuple2, waiting for the moment to pounce.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19266 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 06:00:59 +00:00
extempore
e6fe4973c5
Fix and test case for #2512 , plus lots of time expended
...
tuning HashSet starting sizes and growth rate, with almost
nothing to show for it (but I did determine that "shadowed"
is constructed identically something like 10,000 times, so
there is probably a cache to be had there.)
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19265 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-25 03:56:13 +00:00
dragos
058d63c0b3
Fixed isCoDefinedWith by undoing previous changes. It still looks broken, but this fixes the nightly until a better fix is devised
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19261 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-24 17:01:34 +00:00
extempore
b1115f24bd
Added scalac.args.quickonly to build.xml, because otherwise the
...
only way to fully test new command line options either involves
rebuilding starr every time or manually editing build.xml between
locker and quick.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19257 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-23 18:56:42 +00:00
extempore
99a502e5bd
Reorg of number parsing to use more direct logic.
...
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@19256 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2009-10-23 18:54:42 +00:00