home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / scheme / 2141 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.5 KB

  1. Path: sparky!uunet!snorkelwacker.mit.edu!ai-lab!zurich.ai.mit.edu!jinx
  2. From: jinx@zurich.ai.mit.edu (Guillermo J. Rozas)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: wots going on here!?
  5. Message-ID: <JINX.92Sep2121245@rolex.ai.mit.edu>
  6. Date: 2 Sep 92 16:12:45 GMT
  7. References: <17timvINN7b8@agate.berkeley.edu>     <17tn1uINNkij@early-bird.think.com>
  8.     <JINX.92Aug31170432@chamarti.ai.mit.edu>
  9.     <17ur1oINNem6@agate.berkeley.edu>
  10.     <JINX.92Sep1033012@chamarti.ai.mit.edu>
  11.     <SOMMERFELD.92Sep1131757@gourmet.apollo.hp.com>
  12.     <t6jnlga.thinman
  13. Sender: news@ai.mit.edu
  14. Reply-To: jinx@zurich.ai.mit.edu
  15. Organization: M.I.T. Artificial Intelligence Lab.
  16. Lines: 21
  17. In-reply-to: thinman@netcom.com's message of 1 Sep 92 23:12:54 GMT
  18.  
  19. In article <t6jnlga.thinman@netcom.com> thinman@netcom.com (Technically Sweet) writes:
  20.  
  21. |   sommerfeld@apollo.hp.com (Bill Sommerfeld) writes:
  22. |   >"#[unspecified IF alternative at line xxx character yyy of source file zzz.scm]"
  23. |
  24. |   >or some other such reference back to the source code which would point
  25. |   >the beginner right at the bug.
  26. |
  27. |   >These could be generated *once* when reading in the source.
  28. |
  29. |   The old BSD Pascal interpreter/compiler used this convention:
  30. |
  31. |       line xx of file yy: unknown whoziwhatsis:
  32. |           a := b + c; d = 3;
  33. |       ----------------------^
  34. |
  35. |   This is still the best error reporting I've seen.
  36. |   I used it on a recent interpreter project.
  37.  
  38. That is fine (and desirable) for syntactic errors.  Much harder (when
  39. at all possible) for runtime errors.
  40.