Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!usna!baldwin
From: baldwin@usna.MIL (LT Justin D. Baldwin )
Newsgroups: comp.lang.pascal
Subject: Re: Clearing the keyboard buffer
Message-ID: <248@usna.MIL>
Date: 3 Oct 89 15:06:25 GMT
References: <1169@krafla.rhi.hi.is> <708@thor.wright.EDU> <246@usna.MIL>
Reply-To: baldwin@cad.usna.mil.UUCP (J.D. Baldwin)
Organization: Canoe U.
Lines: 17

I boneheadedly wrote (to clear the keyboard buffer):
>        while KeyPressed do ReadKey;

when of course I meant 

          while KeyPressed do SomeNullCharVar := ReadKey;

I know this has been said, but "C"ancel doesn't work around here, and
I hate the idea of bogus info like that floating around uncorrected.

My analysis of the flaws in the original solution stands.
--
From the catapult of:               |+| "If anyone disagrees with anything I
   _, J. D. Baldwin, Comp Sci Dept  |+| say, I am quite prepared not only to
 __||____..}->     US Naval Academy |+| retract it, but also to deny under
 \      / baldwin@cad.usna.navy.mil |+| oath that I ever said it." --T. Lehrer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~