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

  1. Path: sparky!uunet!psgrain!percy!data!kend
  2. From: kend@data.rain.com (Ken Dickey)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re^2: wots going on here!?
  5. Message-ID: <709@data.rain.com>
  6. Date: 2 Sep 92 23:44:49 GMT
  7. References: <JINX.92Aug29101908@chamarti.ai.mit.edu> <17o70sINNi2e@agate.berkeley.edu> <JINX.92Aug29223329@chamarti.ai.mit.edu> <17piphINNncj@agate.berkeley.edu> <1992Sep1.160256.25131@sharebase.com>
  8. Organization: Microtek DSD, Hillsboro, OR
  9. Lines: 45
  10.  
  11. >bh@anarres.CS.Berkeley.EDU (Brian Harvey) writes:
  12.  
  13. >%%The behavior I want would be *less* verbose:
  14. >%%        > (+ 2 a)
  15. >%%        Unbound variable: a
  16. >%%        >
  17.  
  18. Well, as long as you are not asking for standards (!), here is Gambit:
  19.  
  20.  
  21. : (+ 2 a)
  22. *** ERROR -- Unbound variable: a
  23.  
  24. 1: ,r        ;; return a value for a
  25. Value: 3
  26. 5
  27.  
  28. : (define x 1)
  29. x
  30.  
  31. : (define z (set! x 2))  ;; to get undefined value
  32. z
  33.  
  34. : z
  35. #[undefined]
  36.  
  37. : (z 37)
  38. *** ERROR -- Operator is not a PROCEDURE
  39. (z 37)
  40.  
  41. 1: ,?
  42. ,?        : Summary of commands
  43. ,+ and ,- : Move to next or previous frame of continuation
  44. ,<n>      : Move to particular frame (<n> <= 0)
  45. ,b        : Display frames of continuation (i.e. backtrace)
  46. ,p        : Display procedure attached to current frame
  47. ,e        : Display subproblem of current frame
  48. ,l        : Display list of local variables accessible in current frame
  49. ,t        : Transfer to top-level REP loop
  50. ,d        : Transfer to previous REP loop
  51. ,r        : Return from REP loop
  52. ,q        : Quit
  53.  
  54. 1: ,q
  55.  
  56.