progs/while-arrays/compile_arrays2.sc
changeset 870 739039774cee
parent 869 81ee93b87258
child 943 5365ef60707e
equal deleted inserted replaced
869:81ee93b87258 870:739039774cee
   234 
   234 
   235 // pre-2.5.0 ammonite 
   235 // pre-2.5.0 ammonite 
   236 // import ammonite.ops._
   236 // import ammonite.ops._
   237 
   237 
   238 // post 2.5.0 ammonite
   238 // post 2.5.0 ammonite
   239 import $ivy.`com.lihaoyi::os-lib:0.8.0` 
       
   240 import os._
   239 import os._
   241 
   240 
   242 
   241 
   243 def compile_to_file(bl: Block, class_name: String) : Unit = 
   242 def compile_to_file(bl: Block, class_name: String) : Unit = 
   244   write.over(pwd / s"$class_name.j", compile(bl, class_name))  
   243   write.over(pwd / s"$class_name.j", compile(bl, class_name))