On Sunday 03 November 2013 20:11:14 Sieghard wrote:
> Hallo Martin,
>
> Du schriebst am Sun, 3 Nov 2013 10:36:41 +0100:
> > I think string and array indices should be zero based.
>
> There's no deeper reason for this. Any starting value does.
>
> > array[0..9] of integer; -> array[10] of integer;
> > Opinions?
>
> You're free to do it. Pascal allows any arbitrary starting value.
>
I am writing about array indices in MSElang. There probably will be no 
arbitrary starting value in MSElang.

> Just be prepared to answer questions as to why you did it that way.
>
> I.e.: _Why_ on earth do you think an index should start at 0 when everybody
> else starts counting at _one_? ;-)
>
> (Or the equivalent for any starting value.)
>
Because it is the simplest and most performant solution.

Martin

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to