John Carmack applauds D's pure attribute

Sean Kelly sean at invisibleduck.org
Tue Mar 6 21:59:49 PST 2012


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.


More information about the Digitalmars-d mailing list