From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_05,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56c32e2629d629a X-Google-Attributes: gid103376,public From: "John G. Volan" Subject: Re: What's syntax for a case statement? Date: 1997/06/10 Message-ID: <339DE028.72F7@sprintmail.com>#1/1 X-Deja-AN: 247554434 References: <5nk6gu$gbp@prometheus.acsu.buffalo.edu> Reply-To: johnvolan@sprintmail.com Newsgroups: comp.lang.ada Date: 1997-06-10T00:00:00+00:00 List-Id: 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? :-) "); ------------------------------------------------------------------------