comp.lang.ada
 help / color / mirror / Atom feed
From: John English <je@brighton.ac.uk>
Subject: Re: Need help for a Calculator program
Date: Tue, 12 Feb 2002 11:55:58 +0000
Date: 2002-02-12T11:54:45+00:00	[thread overview]
Message-ID: <3C6902CE.22BC150C@brighton.ac.uk> (raw)
In-Reply-To: upu3lwdxa.fsf@gsfc.nasa.gov

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
-----------------------------------------------------------------



  reply	other threads:[~2002-02-12 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01 12:06 Need help for a Calculator program Jim
2002-02-01 12:41 ` John English
2002-02-01 14:07 ` Preben Randhol
2002-02-01 18:17 ` Stephen Leake
2002-02-01 18:57   ` Jim
2002-02-01 23:20   ` Jeffrey Carter
2002-02-01 23:46 ` Jim
2002-02-02  4:12   ` Eric Merritt
2002-02-02 16:22     ` Jim
2002-02-02 12:04   ` Preben Randhol
2002-02-03 15:41 ` Jim
2002-02-04 13:54   ` Stephen Leake
2002-02-12 11:55     ` John English [this message]
2002-02-12 15:43       ` Pat Rogers
replies disabled

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