Commit e234de556c3696758f2139ae2d2ad208ffa69b26

Authored by David René
1 parent 7b54032a

move to_String(Int32) from basis.anubis to convert.anubis

anubis_dev/library/system/convert.anubis
... ... @@ -19,6 +19,13 @@ read system/string.anubis
19 19  
20 20 public define ByteArray reverse(ByteArray source).
21 21  
  22 +
  23 +public define ByteArray to_ByteArray(Bool value).
  24 +public define ByteArray to_ByteArray(Int8 value).
  25 +
  26 +public define String to_String(Int32 value).
  27 +
  28 +
22 29 public define ByteArray
23 30 to_ByteArray
24 31 (
... ... @@ -173,3 +180,11 @@ public define ByteArray
173 180 dest = constant_byte_array(len,0),
174 181 reverse(source, dest, len - 1, 0).
175 182  
  183 + /************** to_String part *************/
  184 +
  185 +public define String
  186 + to_String
  187 + (
  188 + Int32 v
  189 + )=
  190 + integer_to_string(v).
... ...
anubis_dev/library/tools/basis.anubis
... ... @@ -356,14 +356,6 @@ public define Int32
356 356 success(n) then n
357 357 }.
358 358  
359   -public define String
360   - to_String
361   - (
362   - Int32 value
363   - )=
364   - integer_to_string(value).
365   -
366   -
367 359 *** (2.9) (Bool) int32_less
368 360  
369 361 public define Bool
... ...