[Submission] D Slices
David Nadlinger
see at klickverbot.at
Tue May 31 10:06:06 PDT 2011
On 5/31/11 6:10 PM, eles wrote:
> Actually, I think 0-based vs. 1-based is of little importance in the
> fact if limits should be closed or open. Why do you think the
> contrary?
> Why it is "natural" to use open-limit for 0-based? I think it is
> quite subjective. Why to the right and not to the left?
for (int i = 0; i < array.length; ++i) {}
array[0..array.length]
David
More information about the Digitalmars-d
mailing list