summaryrefslogtreecommitdiff
path: root/src/interactive
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2015-09-27 18:52:23 -0700
committerSom Snytt <som.snytt@gmail.com>2015-09-27 18:52:23 -0700
commitbc3589d3ebab7735fbbb130fbb7c8ccb1146eef7 (patch)
treed60802e1dc337d87e8098f8bd836147a09e33ab7 /src/interactive
parent27da46343cd545534819300235bc64ab74958c92 (diff)
downloadscala-bc3589d3ebab7735fbbb130fbb7c8ccb1146eef7.tar.gz
scala-bc3589d3ebab7735fbbb130fbb7c8ccb1146eef7.tar.bz2
scala-bc3589d3ebab7735fbbb130fbb7c8ccb1146eef7.zip
SI-9492 REPL paste here doc
Simple here documentish syntax for REPL paste. This makes it easier to paste a block of script (as opposed to transcript). It also means you won't accidentally ctl-D out of the REPL and then out of SBT and then out of the terminal window. ``` scala> :paste < EOF // Entering paste mode (EOF to finish) class C { def c = 42 } EOF // Exiting paste mode, now interpreting. defined class C scala> new C().c res0: Int = 42 scala> :paste <| EOF // Entering paste mode (EOF to finish) |class D { def d = 42 } EOF // Exiting paste mode, now interpreting. defined class D scala> new D().d res1: Int = 42 scala> :quit ```
Diffstat (limited to 'src/interactive')
0 files changed, 0 insertions, 0 deletions