solutions/cw5/fun_llvm.sc
changeset 920 7af2eea19646
parent 903 2f86ebda3629
child 921 bb54e7aa1a3f
--- a/solutions/cw5/fun_llvm.sc	Sun Sep 17 19:12:57 2023 +0100
+++ b/solutions/cw5/fun_llvm.sc	Tue Sep 19 09:54:41 2023 +0100
@@ -195,10 +195,9 @@
 
 // convenient string interpolations 
 // for instructions, labels and methods
-import scala.language.implicitConversions
-import scala.language.reflectiveCalls
+
 
-implicit def string_inters(sc: StringContext) = new {
+extension (sc: StringContext) {
     def i(args: Any*): String = "   " ++ sc.s(args:_*) ++ "\n"
     def l(args: Any*): String = sc.s(args:_*) ++ ":\n"
     def m(args: Any*): String = sc.s(args:_*) ++ "\n"