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

  1. Path: sparky!uunet!sun-barr!ames!agate!anarres.CS.Berkeley.EDU!bh
  2. From: bh@anarres.CS.Berkeley.EDU (Brian Harvey)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: wots going on here!?
  5. Date: 1 Sep 1992 04:20:08 GMT
  6. Organization: University of California at Berkeley
  7. Lines: 25
  8. Message-ID: <17ur1oINNem6@agate.berkeley.edu>
  9. References: <17timvINN7b8@agate.berkeley.edu> <17tn1uINNkij@early-bird.think.com> <JINX.92Aug31170432@chamarti.ai.mit.edu>
  10. NNTP-Posting-Host: anarres.cs.berkeley.edu
  11.  
  12. jinx@zurich.ai.mit.edu writes:
  13. >BTW, the current version (in house) of MIT Scheme prints the
  14. >following:
  15. >
  16. >(bar 23)
  17. >;The object #[undefined-value] is not applicable.
  18. >;To continue, call RESTART with an option number:
  19. >; (RESTART 2) => Specify a procedure to use in its place.
  20. >; (RESTART 1) => Return to read-eval-print level 1.
  21.  
  22. I think it would be a major improvement to say "not a procedure" or
  23. "not a function" [I am not religious about this] instead of
  24. "not applicable."
  25.  
  26. But the *really* right error message would be something like
  27. "IF didn't return a value" (or COND didn't, or whatever it is).
  28. The fact that the non-value was used in function position isn't
  29. really what's wrong in this situation.
  30.  
  31. Btw, is "read-eval-print level 1" the level I was at before the
  32. error?  Putting it another way, what level am I at after getting
  33. this message?  That's another unclear thing about the message.
  34. I think it would be better if that option were called either
  35. "evaluate expressions with local variables available" or else
  36. "cancel this computation, return to toplevel" -- whichever it means.
  37.