Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!mintaka!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!reed!reeder From: reeder@reed.UUCP (Doug Reeder) Newsgroups: comp.sys.apple Subject: Re: Orca/Pascal Question Message-ID: <13882@reed.UUCP> Date: 17 Jan 90 02:54:58 GMT References: <9001131418.AA10902@apple.com- <421@unicorn.WWU.EDU- Reply-To: reeder@reed.UUCP (Doug Reeder) Organization: Institute of Knowledge, Jinx Lines: 21 In article <421@unicorn.WWU.EDU- n8948315@unicorn.WWU.EDU (arthur morgan) writes: -In my experience with Pascal and Modula-2 (the son of pascal), I have found -the following to be true. Whenever you do a read operation, whether it be a -Read, ReadString, ReadInt, ReadReal, or whatever; the input all goes into an -input buffer, and a return charaacter is required in order to tell the com- -puter that the input operation is finished, and you are ready to have the -computer do whatever it is supposed to do with the data. For this reason, -when you do that 'Read(c);' with c being a variable of type CHAR, you MUST -enter a return character in order to terminate the input operation and send -the computer on to execute its next instruction. I hope this makes sense. :-) This is unfortunately true for many implementations of Pascal, however it is not a bug of the language itself. The simplest workaround in such a brain-damaged evironment is to always use readln(), which often is not what you want to use. -- Doug Reeder USENET: ...!tektronix!reed!reeder from ARPA: tektronix!reed!reeder@berkeley.EDU BITNET: reeder@reed.BITNET the Little Mermaid on materialism: "I just don't see how a world that makes such wonderful things could be bad."