| author | Christian Urban <christian.urban@kcl.ac.uk> |
| Fri, 29 Nov 2024 18:59:32 +0000 | |
| changeset 975 | c07777e9956a |
| parent 974 | 06148fc63273 |
| child 976 | 4be299d9b41b |
| 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