Mercurial > repos > rhope
comparison string.rhope @ 69:d0ce696786cc
Clean up debug print statements a bit. Fix bug that prevented workers that took no inputs from working. Remove workaround in Array for said bug.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 16 Jun 2010 04:36:08 +0000 |
parents | 048046186d22 |
children | c40c3d399133 |
comparison
equal
deleted
inserted
replaced
68:38d9cd036d49 | 69:d0ce696786cc |
---|---|
91 | 91 |
92 Print@String[string:out] | 92 Print@String[string:out] |
93 { | 93 { |
94 //TODO: Sanitize string (remove terminal escapes and replace invalid UTF) | 94 //TODO: Sanitize string (remove terminal escapes and replace invalid UTF) |
95 write[1i32, [string]Buffer >>, Int64[[[string]Buffer >>]Length >>]] | 95 write[1i32, [string]Buffer >>, Int64[[[string]Buffer >>]Length >>]] |
96 { out <- write[1i32, [Array[1]]Append[10u8], 1i64] } | 96 { out <- write[1i32, [Array[]]Append[10u8], 1i64] } |
97 } | 97 } |
98 | 98 |
99 Flatten@String[string:out] | 99 Flatten@String[string:out] |
100 { | 100 { |
101 out <- string | 101 out <- string |