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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b62b9163b26144cf X-Google-Attributes: gid103376,public From: "David Freshwater" Subject: Re: Exit Loop_Statement Date: 2000/05/09 Message-ID: <39181473@news.wa.apana.org.au>#1/1 X-Deja-AN: 621109057 References: <8f7oep$khc$1@enyo.uwa.edu.au> <3917C83E.D088C4DF@bton.ac.uk> <8f91ps$vb3$1@nnrp1.deja.com> X-Trace: 9 May 2000 21:36:51 +0800, dialup16.wa.apana.org.au Organization: APANA Western Australia (http://www.wa.apana.org.au/) X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Date: 2000-05-09T00:00:00+00:00 List-Id: Hi, Thanks for the help....I had picked up the (1..3) error. I actually have written 2 programs for this assignment. One works well, the other is a different approach to what we have been taught. Let me point out that I am an external student studying this, which makes it hard as I don't have any one to bounce ideas off or get any helpful input. So any help whether pointers or snippets of code are really appreciated. I do understand the need to do this by myself but it just gets frustrating. David Robert Dewar wrote in message news:8f91ps$vb3$1@nnrp1.deja.com... > In article <3917C83E.D088C4DF@bton.ac.uk>, > John English wrote: > > That should be Clients(1..4), right? > > Well yes, of course, and of course we all saw that. But don't > you think it is instructive for people to find a bug like that > for themselves. I preferred the previous post which gave a > useful pointed hint (think about whether this will ever be > true), to this one that provides the correction directly. > > A hard part of computer programming is figuring out why what > you have written does not work, and learning to be careful > and avoid writing such things in the first place. Practice > is really essential in this task. The purpose of assignments > is to provide this practice, and you have to be careful that > in an attempt to be helpful you do not bypass this very > important function. > > > You should convert to e.g. lower case if you want case > > insensitivity: > > if Ada.Characters.Handling.To_Lower(Clients(1..4)) = "stop" > > then ... > > Again, I would point to the reference for this routine, rather > than give the exact code, which the student can then just cut > and paste without any understanding. > > > > > Sent via Deja.com http://www.deja.com/ > Before you buy.