progs/while-arrays/compile_arrays.sc
changeset 975 ae5c03560d4d
parent 974 0cb4bf2469d1
--- a/progs/while-arrays/compile_arrays.sc	Fri Nov 22 12:42:07 2024 +0000
+++ b/progs/while-arrays/compile_arrays.sc	Fri Nov 29 18:58:18 2024 +0000
@@ -221,8 +221,9 @@
 
 import os.*
 
-def compile_to_file(bl: Block, class_name: String) : Unit = 
-  write.over(pwd / s"$class_name.j", compile(bl, class_name))  
+def compile_to_file(bl: Block, class_name: String) : Unit = {
+  write.over(pwd / s"$class_name.j", compile(bl, class_name))
+}    
 
 def compile_and_run(bl: Block, class_name: String) : Unit = {
   println(s"Start of compilation")