going beyond your bounds

MLT none at anon.com
Thu May 21 02:37:59 PDT 2009


Derek Parnell Wrote:

> 
> So remember, assigning one array to another is just creating an alias to
> the original array. You end up with two arrays pointing to the same data
> buffer.

Yes. My question relates to what happens when you go beyond the bounds originally assigned.
Why does an extension of an array
b.length = b.length+1 ;
erase (initialize) the data that b extends to? 


More information about the Digitalmars-d-learn mailing list