home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14257 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!sh.wide!wnoc-kyo!icspub!ccsparc01!a62178a
  2. From: a62178a@ccsparc01.center.osaka-u.ac.jp (kikkawa lab)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: THINK Pascal's Undo (In no)
  5. Keywords: THINK Pascal, Undo, Bug
  6. Message-ID: <438@ccsparc01.center.osaka-u.ac.jp>
  7. Date: 20 Aug 92 05:37:12 GMT
  8. Organization: Computation Center, Osaka University
  9. Lines: 26
  10.  
  11. I found a fatal bug in my THINK Pascal 4.01.
  12.  
  13. Soon after compiling some source program, `Undo'ing the last 
  14. action, such as deleting a character, causes THINK Pascal to
  15. make absurd code when re-compile it. Example:
  16.  
  17.   program test;
  18.       var i : integer;
  19.   begin
  20.       i := 1
  21.   end.
  22.  
  23. Let's change i := 1 to i := 0 and compile this program. Next, 
  24. choose `Undo Typing' from the Edit menu and compile it again. 
  25. When I run this program on THINK Pascal environment, there 
  26. appears a message saying:
  27.    "The THINK Pascal Zone is damaged. Proceed with caution."
  28.  
  29. If I build application by taking similar step, the size of CODE 
  30. resource of the resulting one is only 30 bytes (362 bytes, if 
  31. correctly compiled.)
  32.  
  33. Is this bug popular, or proper to my THINK Pascal and my 
  34. environment?
  35.  
  36. Sorry for my poor English.  Humitaka Tamura
  37.