home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6620 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.4 KB

  1. Path: sparky!uunet!newsflash.concordia.ca!daily-planet.concordia.ca!pavo.concordia.ca!m_rheau
  2. From: m_rheau@pavo.concordia.ca
  3. Newsgroups: comp.lang.pascal
  4. Subject: a curious thing...
  5. Message-ID: <16NOV199202564218@pavo.concordia.ca>
  6. Date: 16 Nov 92 07:56:00 GMT
  7. Sender: usenet@daily-planet.concordia.ca
  8. Organization: Concordia University
  9. Lines: 34
  10. News-Software: VAX/VMS VNEWS 1.41
  11.  
  12. Hats off to Borland, which provides practical and 
  13. insightful programming snippets to explain the 
  14. various commands.  NOT.
  15.  
  16. Not always, anyway. I would like to ask about the
  17. following example taken from TP 5.5's online help :
  18. ---------------------------------------------------
  19. program test2;
  20.  
  21. begin
  22.    { tells program to wait for keyboard input }
  23.    Writeln(Eoln)
  24. end.
  25. ---------------------------------------------------
  26.  
  27. WHOOOOOOOOOOA there. It's more insightful than I wanted.
  28. Running the above snippet will allow you to type whatever you
  29. want on the keyboard until you hit ENTER.  ...why does this work?
  30.  
  31. Any subsequent Writeln(Eoln) simply (if I recall) prints a boolean
  32. value (0 or 1) to signal the status of EOLN.  I have no problem with
  33. that.  Does the first Writeln(Eoln) accept input because EOLN is
  34. undefined? That's the only way I can see it.  
  35.  
  36. Comments, please...
  37.  
  38. A N  D    R        E                W
  39.                                     M                I        L    L  E N
  40. m_rheau@pavo.concordia.ca
  41.  
  42. =8]
  43.    \ hi. I'm Sig.
  44.  
  45.  
  46.