Use '#:' prefix for keywords instead of ':'. Thanks to Richard Todd!
authorMarius Vollmer <mvo@zagadka.de>
Mon, 12 Jan 2004 17:19:21 +0000 (17:19 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 12 Jan 2004 17:19:21 +0000 (17:19 +0000)
ice-9/mapping.scm

index 8abb5f4..4cdcffd 100644 (file)
 (define (hash-table-mapping . options)
   (let* ((size (or (and options (number? (car options)) (car options))
                   71))
-        (hash-proc (or (kw-arg-ref options :hash-proc) hash))
-        (assoc-proc (or (kw-arg-ref options :assoc-proc)
+        (hash-proc (or (kw-arg-ref options #:hash-proc) hash))
+        (assoc-proc (or (kw-arg-ref options #:assoc-proc)
                         (cond
                          ((eq? hash-proc hash) assoc)
                          ((eq? hash-proc hashv) assv)
                          (else (error 'hash-table-mapping
                                       "Hash-procedure specified with no known assoc function."
                                       hash-proc)))))
-        (delete-proc (or (kw-arg-ref options :delete-proc)
+        (delete-proc (or (kw-arg-ref options #:delete-proc)
                          (cond
                           ((eq? hash-proc hash) delete!)
                           ((eq? hash-proc hashv) delv!)
                           (else (error 'hash-table-mapping
                                        "Hash-procedure specified with no known delete function."
                                        hash-proc)))))
-        (table-constructor (or (kw-arg-ref options :table-constructor)
+        (table-constructor (or (kw-arg-ref options #:table-constructor)
                                (lambda (len) (make-vector len '())))))
     (make-hash-table-mapping (table-constructor size)
                             hash-proc