Treat setting to #f as delete.
This commit is contained in:
parent
9e2d0ca60c
commit
2b7266994d
|
@ -5,7 +5,7 @@
|
|||
(define make-weak-table make-table)
|
||||
|
||||
(define (weak-table-set! table number set-me)
|
||||
(table-set! table number (make-weak-pointer set-me)))
|
||||
(table-set! table number (if set-me (make-weak-pointer set-me) #f)))
|
||||
|
||||
(define (weak-table-ref table number)
|
||||
(let ((ref (table-ref table number)))
|
||||
|
|
Loading…
Reference in New Issue