From: Alexandre F. <ale...@gm...> - 2008-04-28 10:12:49
|
On Mon, Apr 28, 2008 at 12:08 PM, Donal K. Fellows <don...@ma...> wrote: > Alexandre Ferrieux wrote: > > > What about doing this iteration on a byte array rather than a string ? > > (of course it may not deserve the [string foreach] name in that case ;-) > > > > What about that? (The problems I'm talking about don't relate to the > type of characters in the buffer...) The idea is that the ByteArray is an internal rep, with all its extensibility like sub-refcounting, while you seemed worried that the string rep was a more restricted thing (the ->bytes pointer). But maybe I misread your mind ? -Alex |