Changes to the Tango runtime / GC

David Brown dlang at davidb.org
Sat Oct 13 22:20:16 PDT 2007


On Sat, Oct 13, 2007 at 08:38:54AM -0700, Sean Kelly wrote:

> The new behavior of Tango is to preserve block attributes for any allocated 
> block whose size is simply changing as the result of an array operation.  
> *** This is true of both slices and normal arrays. ***  For example:

As I understand, this will means that GrowBuffer's won't suddently start
having pointers after the first resize operation.

I think this behavior is a good thing.  The attribute should be an aspect
of the data, not the particular things that are pointing to it.

David



More information about the Digitalmars-d mailing list