sci: use public alter-var-root

This commit is contained in:
Michiel Borkent 2020-01-04 15:31:49 +01:00
parent 0dd0482eb9
commit 62f12e75ee
3 changed files with 5 additions and 4 deletions

View file

@ -12,6 +12,7 @@
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/tools.reader "1.3.2"]
[borkdude/edamame "0.0.10-alpha.2"]
[borkdude/graal.locking "0.0.2"]
[org.clojure/core.async "0.4.500"]
[org.clojure/tools.cli "0.4.2"]
[org.clojure/data.csv "0.1.4"]

2
sci

@ -1 +1 @@
Subproject commit 6535d1437470dad90751278f17c262c3e9198c81
Subproject commit a6286ce315452137057d40c1cdc127091a6429a3

View file

@ -25,9 +25,9 @@
[sci.impl.interpreter :refer [eval-string*]])
(:gen-class))
(sci.impl.vars/bindRoot sci/in *in*)
(sci.impl.vars/bindRoot sci/out *out*)
(sci.impl.vars/bindRoot sci/err *err*)
(sci/alter-var-root sci/in (constantly *in*))
(sci/alter-var-root sci/out (constantly *out*))
(sci/alter-var-root sci/err (constantly *err*))
(set! *warn-on-reflection* true)
;; To detect problems when generating the image, run: