`goto-command', when selecting a subproblem with no reductions, tried
authorChris Hanson <org/chris-hanson/cph>
Sat, 18 Apr 1987 00:15:53 +0000 (00:15 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 18 Apr 1987 00:15:53 +0000 (00:15 +0000)
to set the reduction number to 1, rather than 0.  This previously
"worked" because

(list-ref '() 1) ==> '()

instead of signalling an error as it now does.

v7/src/runtime/debug.scm

index b7703a7113b69888ff7edc31d02686e79835e333..5ad70542be55de0993958c1edde34d5361faa4d9 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/debug.scm,v 13.42 1987/03/17 18:49:00 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/debug.scm,v 13.43 1987/04/18 00:15:53 cph Rel $
 ;;;
 ;;;    Copyright (c) 1987 Massachusetts Institute of Technology
 ;;;
     (cond ((> current-number-of-reductions 1) (get-reduction-number))
          ((= current-number-of-reductions 1)
           (format "~%There is only one reduction for this subproblem")
-          (set-current-reduction! 1))
+          (set-current-reduction! 0))
          (else (format "~%There are no reductions for this subproblem."))))
   
   (define (get-subproblem-number)