* boot-9.scm (%%handle-system-error key): set args and rest to
authorGary Houston <ghouston@arglist.com>
Sun, 15 Sep 1996 06:36:11 +0000 (06:36 +0000)
committerGary Houston <ghouston@arglist.com>
Sun, 15 Sep 1996 06:36:11 +0000 (06:36 +0000)
the empty list if they are #f.
Initialize out-of-range as an error key.

ice-9/ChangeLog
ice-9/boot-9.scm

index 3a8438e..3921efe 100644 (file)
@@ -1,3 +1,9 @@
+Sun Sep 15 03:55:35 1996  Gary Houston  <ghouston@actrix.gen.nz>
+
+       * boot-9.scm (%%handle-system-error key): set args and rest to
+       the empty list if they are #f.
+       Initialize out-of-range as an error key.
+
 Sat Sep 14 03:41:15 1996  Gary Houston  <ghouston@actrix.gen.nz>
 
        * PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
index a2e569b..da1a3dc 100644 (file)
   (cond ((= (length arg-list) 4)
         (letrec ((subr (car arg-list))
                  (message (cadr arg-list))
-                 (args (caddr arg-list))
-                 (rest (cadddr arg-list))
+                 (args (or (caddr arg-list)
+                           '()))
+                 (rest (or (cadddr arg-list)
+                           '()))
                  (cep (current-error-port))
                  (fill-message
                   (lambda (message args)
           (apply error fixed-args)))))
 
 ;; associate error symbols with the default handler.
-(let loop ((keys '(system-error numerical-overflow)))
+(let loop ((keys '(system-error numerical-overflow out-of-range)))
   (cond ((not (null? keys))
         (set-symbol-property! (car keys)
                               'throw-handler-default