Arrays are sufficient for ArrayLists? Really??
Mehrdad
wfunction at hotmail.com
Mon May 16 12:44:06 PDT 2011
On 5/16/2011 12:41 PM, Andrei Alexandrescu wrote:
>> I was mistaken and removed my post. The code ingeniously redefines the
>> problem - instead of removing from the array by shifting its tail
>> downwards, it shifts elements upwards from the head of the array. A nice
>> hack, but I don't think it does a lot in helping your situation.
>
> In fact I even need to take that back. In order to work correctly, the
> function would have to iterate downwards. It _is_ indeed buggy, and I
> should stop emitting opinions when I'm short on time...
>
> Andrei
>
I'm not sure what you mean by iterating downwards, but I just noticed
another bug: That would _still_ stomp over a superarray if this array is
a slice of it, right?
Is there any way to find out if an array is a slice of another array?
More information about the Digitalmars-d
mailing list