TextCollector.st
branchjv
changeset 5604 557f2eac0204
parent 5576 3fb9c7ead366
parent 5603 04f026f65189
child 5611 17b35abfb74e
--- a/TextCollector.st	Thu Mar 03 06:57:29 2016 +0100
+++ b/TextCollector.st	Sun Mar 06 07:05:01 2016 +0100
@@ -858,21 +858,32 @@
     "Modified: 11.1.1997 / 14:43:26 / cg"
 !
 
+printf:formatSpec
+    "convenient C-style formatted printing"
+
+    ^ entryStream printf:formatSpec
+
+    "
+     1 to: 10 do:[:i |
+        Transcript printf:'Hello World\n'
+     ].
+    "
+!
+
 printf:formatSpec with:arg1
-    "convenient C-style formatted printing"
+    "convenient C-style formatted printing with 1 argument"
 
     ^ entryStream printf:formatSpec with:arg1
 
     "
      1 to: 10 do:[:i |
-        Transcript 
-            printf:'[%d] Hello World\n' with:i
+        Transcript printf:'[%d] Hello World\n' with:i
      ].
     "
 !
 
 printf:formatSpec with:arg1 with:arg2
-    "convenient C-style formatted printing"
+    "convenient C-style formatted printing with 2 arguments"
 
     ^ entryStream printf:formatSpec with:arg1 with:arg2
 
@@ -885,7 +896,7 @@
 !
 
 printf:formatSpec with:arg1 with:arg2 with:arg3
-    "convenient C-style formatted printing"
+    "convenient C-style formatted printing with 3 arguments"
 
     ^ entryStream printf:formatSpec with:arg1 with:arg2 with:arg3
 
@@ -924,7 +935,7 @@
 !
 
 printf:formatSpec withAll:args
-    "convenient C-style formatted printing"
+    "convenient C-style formatted printing with an arbitrary number of arguments"
 
     ^ entryStream printf:formatSpec withAll:args