comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: Array-like object indexing
Date: Mon, 19 Aug 2002 19:49:20 GMT
Date: 2002-08-19T19:49:20+00:00	[thread overview]
Message-ID: <3D614BE2.CE0F0730@san.rr.com> (raw)
In-Reply-To: ajrh2j$1dce2m$1@ID-151722.news.dfncis.de

Ryan wrote:
> separately :).  The STL name did always confuse me (Why is
> My_String.end() actually *past* the last character of My_String?).

Because C starts counting at zero, and once you make the convention that
ranges are half-open, including the first index and excluding the last, then
a bunch of stuff works a lot better.

-- 
Darren New 
San Diego, CA, USA (PST). Cryptokeys on demand.
   ** http://images.fbrtech.com/dnew/ **

Try our EbolaBurgers...
      So tender they melt in your mouth.



      reply	other threads:[~2002-08-19 19:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-18  0:22 Array-like object indexing Ryan
2002-08-19  3:55 ` R. Tim Coslet
2002-08-19  5:36 ` Simon Wright
2002-08-19 19:33   ` Ryan
2002-08-19 19:49     ` Darren New [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox