Re: array with same value all the time?
- From: "Sonnich" <sonnich.jensen@xxxxxxxxxxxxxx>
- Date: 30 Mar 2006 08:59:26 -0800
alanglloyd@xxxxxxx wrote:
I can't see any problem with this, OTOH I think it would be much
clearer to code ...
{ delete used data }
for i := 0 to Length(AData) - iUsedData - 1 do
aData[i] := aData[iUsedData + i];
SetLength(aData, Length(aData) - iUsedData);
... but maybe its how I look at shuffling bytes. <g>
It is an old habit of mine to do so. The point is that Decrementing is
faster than Incrementing - it probably does not do much of a difference
here, but I try to do so all the time, as it might help me some day.
Actually Delphi counts down to in for loops, where the var itself is
not used, cause it is faster.
BR
Sonnich
.
- Follow-Ups:
- Re: array with same value all the time?
- From: Sonnich
- Re: array with same value all the time?
- References:
- array with same value all the time?
- From: Sonnich
- Re: array with same value all the time?
- From: alanglloyd@xxxxxxx
- array with same value all the time?
- Prev by Date: TChart - forcing zoom?
- Next by Date: Re: array with same value all the time?
- Previous by thread: Re: array with same value all the time?
- Next by thread: Re: array with same value all the time?
- Index(es):
Relevant Pages
|