progs/fun/fun.sc
changeset 974 06148fc63273
parent 954 4a7ed272d46e
--- a/progs/fun/fun.sc	Fri Nov 22 12:42:07 2024 +0000
+++ b/progs/fun/fun.sc	Fri Nov 29 18:58:18 2024 +0000
@@ -162,7 +162,7 @@
 // the main compilation function
 def compile(prog: List[Decl], class_name: String) : String = {
   val instructions = prog.map(compile_decl).mkString
-  (library + instructions).replaceAllLiterally("XXX", class_name)
+  (library + instructions).replace("XXX", class_name)
 }