Removal of radixstring from string_of_int; addition of string_of_indexname
authorpaulson
Thu, 05 Jun 1997 13:29:41 +0200
changeset 3407 afd288caf573
parent 3406 131262e21ada
child 3408 98a2d517cabe
Removal of radixstring from string_of_int; addition of string_of_indexname
src/Pure/library.ML
--- a/src/Pure/library.ML	Thu Jun 05 13:28:32 1997 +0200
+++ b/src/Pure/library.ML	Thu Jun 05 13:29:41 1997 +0200
@@ -370,9 +370,10 @@
   in implode (map chrof (radixpand (base, num))) end;
 
 
-fun string_of_int n =
-  if n < 0 then "~" ^ radixstring (10, "0", ~n) else radixstring (10, "0", n);
+val string_of_int = Int.toString;
 
+fun string_of_indexname (a,0) = a
+  | string_of_indexname (a,i) = a ^ "_" ^ Int.toString i;
 
 
 (** strings **)