summaryrefslogtreecommitdiff
path: root/src/msil
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-21 21:00:08 +0000
committerPaul Phillips <paulp@improving.org>2010-01-21 21:00:08 +0000
commit1ab0d9ea486254cc2093bba687b7c9b24bcf23da (patch)
tree695bc2d8bd13a72877d72c9dd640358a8df4aeb4 /src/msil
parent7eea9f2823816b3e70b4dbd4bf63ed91d6db376a (diff)
downloadscala-1ab0d9ea486254cc2093bba687b7c9b24bcf23da.tar.gz
scala-1ab0d9ea486254cc2093bba687b7c9b24bcf23da.tar.bz2
scala-1ab0d9ea486254cc2093bba687b7c9b24bcf23da.zip
It's a big REPL patch. And it contains:
* Eliminated a bug which was causing all repl lines to be parsed twice * Removed reference to JLine from InterpreterLoop which was causing someone trouble in eclipse * Enriched the repl compile/reflect mechanism to allow retrieving the value as well as the String describing it * Utilized said enrichment to write an eval[T] method which is exposed in the repl in :power mode * Added ability to turn off string unwrapping in repl: settings.unwrapStrings = false * Created interface presently called Completion.Special which lets objects define their own contents * As minor demonstration of above, in :power mode variable "repl" implements Special and completes with all repl identifiers * As more interesting demonstration of above, try a repl session like... import scala.tools.nsc.interpreter.Completion.Special import scala.tools.nsc.io.Process val connections = new Special { def tabCompletions() = Process("netstat -p tcp").toList drop 2 map (_ split "\\s+" apply 4) } connections.<tab> Review by community!
Diffstat (limited to 'src/msil')
0 files changed, 0 insertions, 0 deletions