From: "John G. Volan" <johnvolan@sprintmail.com>
Subject: Re: What's syntax for a case statement?
Date: 1997/06/10
Date: 1997-06-10T00:00:00+00:00 [thread overview]
Message-ID: <339DE028.72F7@sprintmail.com> (raw)
In-Reply-To: 5nk6gu$gbp@prometheus.acsu.buffalo.edu
Scott B Moore wrote:
>
> I'm new to Ada and I can't find the syntax for a case statement. Any help?
I would think that any good textbook on Ada would have an index in the
back with an entry on "case statements" directing you to the proper
page. :-) Are you taking a course on Ada at the University of Buffalo?
Surely your professor must have assigned you a decent textbook with a
good index! :-)
If for some reason you don't have such a textbook, never fear, you can
consult the online Ada95 Language Reference Manual at
http://www.adahome.com/rm95/
The immediate answer to your question is in section 5.4:
http://www.adahome.com/rm95/rm9x-05-04.html
The syntax notation is not altogether impossible to decipher, and there
are a few examples of case statements at the bottom that will give you
the idea.
However, I don't recommend trying to learn Ada from the RM95. It was
designed to be a precise and unambiguous specification of the language,
not a tutorial. You can find some good online tutorials, textbook
reviews, and many other useful resources at the "Home of the Brave Ada
Programmers" web site:
http://www.adahome.com/
Good luck to you!
------------------------------------------------------------------------
Internet.Usenet.Put_Signature
(Name => "John G. Volan",
Employer => "Texas Instruments Advanced C3I Systems, San Jose, CA",
Work_Email => "johnv@ti.com",
Home_Email => "johnvolan@sprintmail.com",
Slogan => "Ada95: World's *FIRST* International-Standard OOPL",
Disclaimer => "My employer never defined these opinions, so using " &
"them would be totally erroneous...or is that just " &
"nondeterministic behavior now? :-) ");
------------------------------------------------------------------------
next prev parent reply other threads:[~1997-06-10 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-10 0:00 What's syntax for a case statement? Scott B Moore
1997-06-10 0:00 ` John G. Volan [this message]
1997-06-10 0:00 ` Michael F Brenner
1997-06-11 0:00 ` Darren C Davenport
[not found] ` <5nllti$lgb@zdi.informatik.uni-stuttgart.de>
1997-06-12 0:00 ` Alan Brain
1997-06-12 0:00 ` David C. Hoos, Sr.
1997-06-12 0:00 ` Robert Dewar
1997-06-13 0:00 ` Alan Brain
1997-06-13 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox