Fix reader extensions in Scheme reader
authorAndy Wingo <wingo@pobox.com>
Wed, 3 Mar 2021 15:19:57 +0000 (16:19 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 3 Mar 2021 15:22:56 +0000 (16:22 +0100)
* module/ice-9/read.scm (%read): Fix invocation of hash procedure.

module/ice-9/read.scm

index 8d9faca5c19a83b13957e5253749d9abcb321011..73e043bb156ea095d49f90476217eb4c84488e29 100644 (file)
        ((eof-object? ch)
         (error "unexpected end of input after #"))
        ((read-hash-procedure ch)
-        => (lambda (proc) (proc ch)))
+        => (lambda (proc) (proc ch port)))
        (else
         (case ch
           ((#\\) (read-character))