September 11, 2002 Re: resizing arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> Yes. The garbage collector can figure it out. See the file
> \dmd\src\phobos\gc2\gcx.d, and look at the capacity() function.
Why not make it a read-only array property? .capacity or something? Could be useful sometimes...
|
September 13, 2002 Re: resizing arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Ok, it doesn't copy the array 1000 times. But at least it needs to check 1000 times to see if it needs to copy it <g>. |
Copyright © 1999-2021 by the D Language Foundation