diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-06-02 20:18:02 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-06-03 09:23:50 +0200 |
commit | d4d9009a564a7c2a30a1a962da08bdab8408d717 (patch) | |
tree | b8c34a5ac084b93e15cf72453f60651664b9dc95 /src/dotty/tools/dotc/repl/REPL.scala | |
parent | dded5473c2fce3e6ad814536b0f604ebacba1e3a (diff) | |
download | dotty-d4d9009a564a7c2a30a1a962da08bdab8408d717.tar.gz dotty-d4d9009a564a7c2a30a1a962da08bdab8408d717.tar.bz2 dotty-d4d9009a564a7c2a30a1a962da08bdab8408d717.zip |
Add ability to bind values from runtime
Diffstat (limited to 'src/dotty/tools/dotc/repl/REPL.scala')
-rw-r--r-- | src/dotty/tools/dotc/repl/REPL.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/repl/REPL.scala b/src/dotty/tools/dotc/repl/REPL.scala index ae8f0b621..6fda355b5 100644 --- a/src/dotty/tools/dotc/repl/REPL.scala +++ b/src/dotty/tools/dotc/repl/REPL.scala @@ -65,6 +65,9 @@ object REPL { */ val cleanupCommands: List[String] = Nil + /** We also allow binding initial values */ + val boundValues: Array[(String, Any)] = Array.empty[(String, Any)] + /** The default input reader */ def input(in: Interpreter)(implicit ctx: Context): InteractiveReader = { val emacsShell = System.getProperty("env.emacs", "") != "" |