progs/fun/fun.sc
changeset 954 4a7ed272d46e
parent 870 1ea379515c6d
child 974 06148fc63273
--- a/progs/fun/fun.sc	Sat Nov 11 10:08:33 2023 +0000
+++ b/progs/fun/fun.sc	Fri Nov 17 20:06:43 2023 +0000
@@ -74,7 +74,7 @@
 import scala.language.reflectiveCalls
 
 // convenience for code-generation (string interpolations)
-implicit def sring_inters(sc: StringContext) = new {
+extension (sc: StringContext) {
   def i(args: Any*): String = "   " ++ sc.s(args:_*) ++ "\n"  // instructions
   def l(args: Any*): String = sc.s(args:_*) ++ ":\n"          // labels
   def m(args: Any*): String = sc.s(args:_*) ++ "\n"           // methods