home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!snorkelwacker.mit.edu!mintaka.lcs.mit.edu!ai-lab!zurich.ai.mit.edu!jinx
- From: jinx@zurich.ai.mit.edu (Guillermo J. Rozas)
- Newsgroups: comp.lang.scheme
- Subject: Re: wots going on here!?
- Message-ID: <JINX.92Aug30102323@chamarti.ai.mit.edu>
- Date: 30 Aug 92 14:23:23 GMT
- References: <JINX.92Aug29101908@chamarti.ai.mit.edu> <17o70sINNi2e@agate.berkeley.edu>
- <JINX.92Aug29223329@chamarti.ai.mit.edu>
- <17piphINNncj@agate.berkeley.edu>
- Sender: news@ai.mit.edu
- Reply-To: jinx@zurich.ai.mit.edu
- Organization: M.I.T. Artificial Intelligence Lab.
- Lines: 29
- In-reply-to: bh@anarres.CS.Berkeley.EDU's message of 30 Aug 92 04:28:33 GMT
-
- In article <17piphINNncj@agate.berkeley.edu> bh@anarres.CS.Berkeley.EDU (Brian Harvey) writes:
-
- | The behavior I want would be *less* verbose:
- |
- | > (+ 2 a)
- | Unbound variable: a
- |
- | >
- |
- | Short and sweet. It should be possible for an advanced user to ask
- | for pause-on-error behavior in which Scheme would attempt to preserve
- | the environment in which the error occurred, but you should have to
- | ask for it. (This is how Logo does things. Errors give a message
- | and return to toplevel, unless you have asked in advance for pause
- | on error. In that case you get a special prompt and (because of good
- | old dynamic scope -- but that's another argument) *all* of the possibly
- | relevant variables are immediately accessible in the usual way without
- | you having to know anything about environments.)
-
- I'm sorry, but I disagree strongly with this view of the world.
- It is very close to the C/Unix printing "segmentation violation (core
- dumped)" and giving you back a shell prompt.
-
- Your answer of having to tweak a flag or whatever is analogous to
- saying "recompile and run it under the debugger".
-
- Please remember that there are programs that modify global state, and
- thus re-running is not an option since they may not fail in the same
- way or at all.
-