Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- From: Fons <fonzzzNO@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 25 May 2008 17:27:35 +0100
You must be God Allmighty. Not declaring vByteSorted and not using "begin" and "end".
Fons.
"Fons" <fonzzzNO@xxxxxxxxxxxxxxxxxxx> wrote in message.
news:483882ec$0$14346$e4fe514c@xxxxxxxxxxxxxxxxx
> Sometimes FillChar will do:
>
> var S : array[0..79] of char;
> begin
> { Set to all spaces }
> FillChar(S, SizeOf(S), Ord(' '));
> end;
Your 4 code lines, versus my 1 code line.
My one line is 75% more efficient than yours =D
Bye, Bye,
Skybuck ;)
>> One could simply write:
>>
>> vByteSorted[0..255] := false;
>>
>> Would be nice ! :)
>>
>> Bye,
>> Skybuck.
- Follow-Ups:
- References:
- Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- From: Skybuck Flying
- Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- From: Fons
- Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- From: Skybuck Flying
- Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Prev by Date: Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Next by Date: Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Previous by thread: Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Next by thread: Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
- Index(es):