[Submission] D Slices

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue May 31 09:30:32 PDT 2011


On 5/31/11, eles <eles at eles.com> wrote:
> Nice picture, but then why foo[1] is rather 8 than 4? And what is foo
> [9]?

foo[9] is out of range. If foo[1] was actually referring to 4, then
foo[0] would be out of range too.  I've only used this picture because
back years ago when I was trying to understand how this whole system
works there was an explanation similar to this one in some book, the
name of which I forgot. But it did 'click' with me when I saw it
presented like that.


More information about the Digitalmars-d mailing list