On Mar 6, 2012, at 7:47 PM, Walter Bright wrote: > On 3/6/2012 7:19 PM, Sean Kelly wrote: >> Slicing works, it just requires more care. > > You can't mix sliced data and unsliced, unless you have extra data in your > structures to track this.
Ah, I see what you're saying. True. >> GC makes slicing work pretty much automatically, though you can end up with >> severe memory bloat. > > I don't see how slicing produces bloat. Slice ten bytes out of the middle of a ten MB buffer and the entire buffer sticks around.