home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsflash.concordia.ca!daily-planet.concordia.ca!pavo.concordia.ca!m_rheau
- From: m_rheau@pavo.concordia.ca
- Newsgroups: comp.lang.pascal
- Subject: a curious thing...
- Message-ID: <16NOV199202564218@pavo.concordia.ca>
- Date: 16 Nov 92 07:56:00 GMT
- Sender: usenet@daily-planet.concordia.ca
- Organization: Concordia University
- Lines: 34
- News-Software: VAX/VMS VNEWS 1.41
-
- Hats off to Borland, which provides practical and
- insightful programming snippets to explain the
- various commands. NOT.
-
- Not always, anyway. I would like to ask about the
- following example taken from TP 5.5's online help :
- ---------------------------------------------------
- program test2;
-
- begin
- { tells program to wait for keyboard input }
- Writeln(Eoln)
- end.
- ---------------------------------------------------
-
- WHOOOOOOOOOOA there. It's more insightful than I wanted.
- Running the above snippet will allow you to type whatever you
- want on the keyboard until you hit ENTER. ...why does this work?
-
- Any subsequent Writeln(Eoln) simply (if I recall) prints a boolean
- value (0 or 1) to signal the status of EOLN. I have no problem with
- that. Does the first Writeln(Eoln) accept input because EOLN is
- undefined? That's the only way I can see it.
-
- Comments, please...
-
- A N D R E W
- M I L L E N
- m_rheau@pavo.concordia.ca
-
- =8]
- \ hi. I'm Sig.
-
-
-