Re: array with same value all the time?
- From: "Sonnich" <sonnich.jensen@xxxxxxxxxxxxxx>
- Date: 30 Mar 2006 09:00:43 -0800
Sonnich wrote:
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.
sorry I was commenting something else, it went wrong here
.
- References:
- array with same value all the time?
- From: Sonnich
- Re: array with same value all the time?
- From: alanglloyd@xxxxxxx
- Re: array with same value all the time?
- From: Sonnich
- array with same value all the time?
- Prev by Date: Re: array with same value all the time?
- Next by Date: Re: TStringGrid.DrawCell - Not Updating The Correct Cell
- Previous by thread: Re: array with same value all the time?
- Next by thread: TStringGrid.DrawCell - Not Updating The Correct Cell
- Index(es):
Relevant Pages
|