author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 29 Nov 2024 18:59:32 +0000 | |
changeset 976 | e9eac62928f5 |
parent 975 | ae5c03560d4d |
progs/fun/funt.sc | file | annotate | diff | comparison | revisions |
--- a/progs/fun/funt.sc Fri Nov 29 18:58:18 2024 +0000 +++ b/progs/fun/funt.sc Fri Nov 29 18:59:32 2024 +0000 @@ -156,7 +156,7 @@ // main compiler functions 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) } // pre-2.5.0 ammonite