From: "uq5huo...@gmail.com" <uq5huoixplph@gmail.com>
Subject: Beginners question
Date: Fri, 12 Nov 2021 06:32:48 -0800 (PST) [thread overview]
Message-ID: <bd7154c8-21af-468e-910a-5a0847255eafn@googlegroups.com> (raw)
Hi,
I'm beginning to play with Ada, and run into this
with Ada.Text_IO; use Ada.Text_IO;
procedure Learn is
subtype Alphabet is Character range 'A' .. 'Z';
begin
Put_Line ("Learning Ada from " & Alphabet'First & " to " & Alphabet'Last);
end Learn;
Now I want to play a bit with the code ... and this fails and I don't get why and how to solve.
Put_Line ("Learning Ada from " & Alphabet'First & " to " & Alphabet'Last-1);
or
Put_Line ("Learning Ada from " & Alphabet'First & " to " & (Alphabet'Last-1));
Anyone more expirienced can explain this to my, please?
next reply other threads:[~2021-11-12 14:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 14:32 uq5huo...@gmail.com [this message]
2021-11-12 15:24 ` Beginners question Niklas Holsti
2021-11-12 15:44 ` uq5huo...@gmail.com
2021-11-12 15:44 ` uq5huo...@gmail.com
-- strict thread matches above, loose matches on Subject: below --
2001-12-17 17:05 Dave
2002-01-02 14:44 ` Jacob Sparre Andersen
2002-01-02 14:56 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox