Commit Graph

7566 Commits

Author SHA1 Message Date
spoon 6ab2efa74b 1. Phase LiftCode triggers on any apply of Code.lift to a tree, not
just those that are precisely of the form "Code.lift(exp)".

2. The printout of a This(_) tree adds ".this" to the end.

3. This() is now only used for classes.  For modules, the code is
   rewritten as a Select() of the module.



git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12330 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-17 09:25:17 +00:00
dragos 2c151a93e0 Fixed looping behavior in inliner.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12329 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-17 09:15:33 +00:00
mihaylov 4e439ff2ee Fixed contribution #692
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12328 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-17 08:24:42 +00:00
dragos 448e3d86a4 Added assertion to prevent using packages as values
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12327 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 21:40:18 +00:00
dubochet 9289ba9db6 Fixed scalatest to use changed command-lines options.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12324 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 14:05:23 +00:00
michelou 4fb2e7a620 removed warnings.. (hello guys)
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12323 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 13:46:55 +00:00
dubochet 227fef124f Updated Scalac man page for changed command-line options.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12322 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 13:15:36 +00:00
spoon 6f17d41086 git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12320 5e8d7ff9-d8ef-0310-90f0-a4852d11357a 2007-07-16 12:18:44 +00:00
dubochet fd9bab914e Changed organisation of Scalac's command-line options to split them into three categories: every-day use, advanced (-X) and private (-Y).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12319 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 12:16:33 +00:00
michelou 0b7ddc3d8a added elapsed time info
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12318 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-16 11:54:26 +00:00
odersky 4f4b048cfb changes in check file
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12317 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-14 15:56:25 +00:00
odersky 724e9af058 fixed last checkin which broke 3 tests
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12316 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-14 13:26:40 +00:00
odersky c2cba68e3c Fixed bug1049
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12315 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-14 11:51:42 +00:00
spoon 213ca0c95a git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12314 5e8d7ff9-d8ef-0310-90f0-a4852d11357a 2007-07-13 21:44:56 +00:00
spoon 5bbddc44e6 git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12313 5e8d7ff9-d8ef-0310-90f0-a4852d11357a 2007-07-13 21:23:20 +00:00
spoon 909db3bbe9 gracefully handle end-of-input in the middle of parsing XML
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12312 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 21:22:43 +00:00
spoon 5eef3bca54 minor tweak to the message for ending multi-line input early
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12311 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 21:20:54 +00:00
spoon fb39aa5447 - set the Java "context classloader" in ObjectRunner and InterpreterLoop
- tweaked the start up of the interactive shell so that
  a prompt appears more quickly


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12310 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 19:26:01 +00:00
spoon 78bb37f8ba make extra sure that ch==SU whenever the
end of the buffer is reached


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12309 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 19:24:31 +00:00
spoon 89df1566dd - interpret() creates compiler.Run the first time it is called
- setContextClassLoader() is now available


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12308 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 19:22:08 +00:00
odersky ec710b7acf refactorings for SingletionType's to make them forward more operations to their underlying type.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12307 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 16:32:56 +00:00
dragos c41bcc1413 Fixed deprecation warnings in the backend.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12306 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 16:02:16 +00:00
spoon fb7b7d48d8 Refactored GenericRunnerCommand to be a sublcass of CompilerCommand
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12305 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:49:21 +00:00
spoon e33e62d7eb Remved a "new Run" from Global and moved it to Plugins.pluginOptionsHelp
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12304 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:48:15 +00:00
spoon eacf53c210 tweaked an error message
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12301 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:38:12 +00:00
dragos 6aaf0b3ef6 Fixed bug #1211 by making accessors in traits non-private in the type transformer instead of the term transformer.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12300 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:29:46 +00:00
spoon 5625890150 fixed the comment
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12299 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:18:57 +00:00
spoon a4d14e43ca - run the scaladoc task with its classpath pointing to directories,
not to jars
- use the just-build scaladoc to generate the API, not the one in starr
- removed some properties whose name and value are the same
- generate API docs for the actors code, too
- do not build and install the tests package by default


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12298 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 15:17:24 +00:00
mihaylov b269c20a3f Synced dotnet library with rev 12294
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12297 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 10:56:44 +00:00
dragos 4576d20cdb Rolled back the change to trick the constant folder.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12296 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 09:48:44 +00:00
phaller a368120776 Fixed possible memory leak (bug 668).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12295 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-13 09:46:45 +00:00
michelou e697f29d4c removed type aliases, old for-syntax, ..
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12292 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 17:05:58 +00:00
spoon 1f83770b64 - added method Type.attributes
- commented two odd-looking methods


git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12291 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 15:38:04 +00:00
emir 028c64732f incompleteInputError instead of fatal error
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12288 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 15:14:18 +00:00
dragos 8adbed5fe6 Fixed bug #1205 to optimize even more tail calls.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12287 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 15:01:25 +00:00
dragos 3c93b830c2 Guarded one test against the constant folder.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12286 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 15:00:17 +00:00
odersky 843f5bd405 1. added take, drop, takeWhile, dropWhile to Arrays.
2. some new tests.
3. split Type.symbol to typeSymbol/termSymbol
4. some fixes to lub opertation

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12285 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 14:56:50 +00:00
michelou 0dc5bc0283 minor changes
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12283 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 12:33:02 +00:00
dragos 7abc0da10e Improved code generation for numeric literals when they are immediately converted.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12282 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 09:59:49 +00:00
dragos 5b5c001806 Updated outdated comment.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12281 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 09:59:14 +00:00
emir 185b49e41d changed constructor call String(bytes) to String(bytes,"utf8")
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12280 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 06:48:28 +00:00
emir 4bfeafc263 introduced "typedValDef", fixing improbable bug in unapply
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12279 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-12 06:34:51 +00:00
emir b60bf060a9 no optimization of Chars :/ maybe another time
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12278 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 22:33:55 +00:00
emir dcdd2a4deb removed "DIFF"+fixed spurious warning+optimizing match on chars
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12277 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 22:04:03 +00:00
emir 2dbef79f29 fix + small optimization, duplicating small bodies
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12276 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 21:28:24 +00:00
moors f0d10d6cf1 fixed warnings.. the "missing combination" warnings in lexical/Scanners seem to be spurious
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12275 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 16:07:57 +00:00
odersky 20d406954e tightened definition of lub
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12274 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 16:07:12 +00:00
michelou 0b98fa1763 added Stepan's patch ops/SyncVar
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12271 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 14:52:34 +00:00
phaller b5f0c98e72 Fixed typed channels example.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12270 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 14:39:34 +00:00
dragos 3370a41597 Fixed linearization order and a small inefficiency regarding null literals
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@12269 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2007-07-11 14:09:31 +00:00