From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: problemn with string'last
Date: Fri, 5 May 2023 14:08:06 +0200 [thread overview]
Message-ID: <u32rj6$28c34$2@dont-email.me> (raw)
In-Reply-To: <u32okt$2aep1$1@dont-email.me>
On 2023-05-05 13:17, Jeffrey R.Carter wrote:
> However, it's important to remember that 'Last is not necessarily the
> same as 'Length because 'First is not necessarily one. This is
> especially important in subprograms that take String parameters, as they
> are often passed slices.
Non-sliding indices is one of the most useful Ada features. You can pass
indices around as-is, which is extremely helpful when processing strings.
You will also find that actually 'Length and 'Last have different types,
which is quite useful as well.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2023-05-05 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-05 9:51 problemn with string'last Daniel Gaudry
2023-05-05 10:02 ` Dmitry A. Kazakov
2023-05-05 11:17 ` Jeffrey R.Carter
2023-05-05 12:08 ` Dmitry A. Kazakov [this message]
2023-05-05 16:28 ` Manuel Gomez
2023-05-05 16:33 ` Simon Wright
2023-05-05 18:18 ` Manuel Gomez
2023-05-05 19:52 ` J-P. Rosen
2023-05-05 20:44 ` Simon Wright
2023-05-05 23:27 ` Jeffrey R.Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox