Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;



Hello,

This could be a nice syntax additional to Delphi:

Instead of writing:

var
vIndex : integer;

for vIndex := 0 to 255 do
begin
vByteSorted[0..255] := false;
end;

Or instead of writing:

for each in vByteSorted do
begin
vByteSorted := false;
end;

One could simply write:

vByteSorted[0..255] := false;

Would be nice ! :)

Bye,
Skybuck.


.



Relevant Pages

  • Re: Interesting shortcut syntax for filling arrays with common value: vByteSorted[0..255] := false;
    ... This could be a nice syntax additional to Delphi: ... for vIndex:= 0 to 255 do ... Or instead of writing: ...
    (alt.comp.lang.borland-delphi)
  • Re: GAS struc
    ... And you've rewritten the Delphi VCL, ... > As you readily tell everyone around here, you're just a beginner. ... > Because I am right now writing a component library in assembly? ... Using equates is *not* the way to do structs. ...
    (alt.lang.asm)
  • Re: Learn Delphi Website
    ... > get me fluent in the language. ... Google WEB "Delphi tutorial" and you can find everything from elementary to ... In my view, however, writing a computer language is somewhat like writing a ...
    (alt.comp.lang.borland-delphi)
  • Re: D2006 hits the UK
    ... as being written from the ground up as fully managed applications. ... You decided to use Delphi regardless of the fact that MS did not use it for writing Office. ...
    (borland.public.delphi.non-technical)
  • Re: Some Thoughts On Kissels Roadmap
    ... I can use any component written in Delphi and derive a new ... and thus I can easily add new features to that class. ... you have the posibility of writing ... For someone writing applications it means that it is a lot ...
    (borland.public.delphi.non-technical)