progs/fun/fun.sc
changeset 975 ae5c03560d4d
parent 955 47acfd7f9096
--- 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)
 }