(make-exchanger): Added. Thanks to Clinton Ebadi!
authorMarius Vollmer <mvo@zagadka.de>
Mon, 8 Jul 2002 20:55:20 +0000 (20:55 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 8 Jul 2002 20:55:20 +0000 (20:55 +0000)
ice-9/slib.scm

index e91edae..dc40c2e 100644 (file)
@@ -326,3 +326,6 @@ no other easy or unambiguous way of detecting such features."
          (set-cdr! entry path-name)
          (set! *catalog*
                (acons name path-name *catalog*))))))
+
+(define (make-exchanger obj)
+  (lambda (rep) (let ((old obj)) (set! obj rep) old)))