changeset 869 | 81ee93b87258 |
parent 829 | dc3c35673e94 |
child 870 | 739039774cee |
--- a/progs/while-arrays/compile_arrays.sc Thu Jan 20 08:58:38 2022 +0000 +++ b/progs/while-arrays/compile_arrays.sc Mon Jan 24 00:00:33 2022 +0000 @@ -214,7 +214,15 @@ // java arr/arr // 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))