Re: Copy sub section of array of bytes to another array
From: Bruce Roberts (ber_at_bounceitattcanada.xnet)
Date: 08/30/04
- Next message: Maarten Wiltink: "Re: How to declare a const array of strings"
- Previous message: Bruce Roberts: "Re: How to declare a const array of strings"
- In reply to: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Next in thread: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Reply: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 13:03:09 -0400
"Skybuck Flying" <nospam@hotmail.com> wrote in message
news:cgs0ei$dne$1@news2.tilbu1.nb.home.nl...
> You could try it. You also have benefit of range checking if you enable it
> ;)
>
> for i:=0 to 5 do
> begin
> other_array[1+i] := this_array[7+i];
> end;
>
> Hmm your arrays do not start at zero.. that's a bit bad.... it's better to
> start at index zero ;)
Too bad you don't take your own advice. It is not better to start an index
at zero. It is far, far better to start an index with the lowest value
needed. Let the compiler worry about making things more efficient for the
machine. The programmer has to worry about much more important things. Such
as delivering a low maintenance stable application on-time.
- Next message: Maarten Wiltink: "Re: How to declare a const array of strings"
- Previous message: Bruce Roberts: "Re: How to declare a const array of strings"
- In reply to: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Next in thread: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Reply: Skybuck Flying: "Re: Copy sub section of array of bytes to another array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]