comp.lang.ada
 help / color / mirror / Atom feed
* Beginners question
@ 2021-11-12 14:32 uq5huo...@gmail.com
  2021-11-12 15:24 ` Niklas Holsti
  0 siblings, 1 reply; 7+ messages in thread
From: uq5huo...@gmail.com @ 2021-11-12 14:32 UTC (permalink / 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?

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Beginners question
@ 2001-12-17 17:05 Dave
  2002-01-02 14:44 ` Jacob Sparre Andersen
  0 siblings, 1 reply; 7+ messages in thread
From: Dave @ 2001-12-17 17:05 UTC (permalink / raw)


Hi all i have recently started programming and the course leaders in
thier wisdom have choosen Ada. I am having to write a program that
quite on entry of a value with of blank, in other words hitting the
return key. I am having trouble doing this and any help would be
appreciated



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-12 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 14:32 Beginners question uq5huo...@gmail.com
2021-11-12 15:24 ` 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

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