| changeset 869 | 16247acc4b0e |
| parent 829 | 936d1c534325 |
| child 870 | 1ea379515c6d |
--- a/progs/while-arrays/compile_bfc.sc Thu Jan 20 08:58:38 2022 +0000 +++ b/progs/while-arrays/compile_bfc.sc Mon Jan 24 00:00:33 2022 +0000 @@ -63,7 +63,14 @@ } // automating the above -import ammonite.ops._ + +// pre-2.5.0 ammonite +// import ammonite.ops._ + +// post 2.5.0 ammonite +import $ivy.`com.lihaoyi::os-lib:0.8.0` +import os._ + def compile_to_file(bl: Block, class_name: String) : Unit = write.over(pwd / s"$class_name.j", compile(bl, class_name))