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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,975b46ec27c036e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-12 04:11:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: Need help for a Calculator program Date: Tue, 12 Feb 2002 11:55:58 +0000 Organization: University of Brighton Message-ID: <3C6902CE.22BC150C@brighton.ac.uk> References: NNTP-Posting-Host: pcje.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1013514885 27261 193.62.183.48 (12 Feb 2002 11:54:45 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 12 Feb 2002 11:54:45 GMT X-Mailer: Mozilla 4.7 [en-gb] (WinNT; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:19924 Date: 2002-02-12T11:54:45+00:00 List-Id: Stephen Leake wrote: > > Or you can require the user to enter a semicolon to terminate a > statement, like Ada does. That makes things simpler for the > programmer, which is ok while you are just learning. Which is what the example in the book does, except it uses a full stop rather than a semicolon. I avoided using Get_Line because string variables and arrays hadn't been covered at that point in the book, and End_Of_Line has too many gotchas. However, what I hadn't realised is that while the Real English term "full stop" is synonymous with the Real English term "period", the same is not true in US English :-( In retrospect, using "semicolon" would have been clearer, and I now plan to fix the text to do this. ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------