- object-become! ALISTprocedure
Changes the identity of the value of the car of each pair in ALIST to the value of the cdr. Neither value may be immediate (i.e. exact integers, characters, booleans or the empty list).
(define x "i used to be a string") (define y '#(and now i am a vector)) (object-become! (list (cons x y))) x ==> #(and now i am a vector) y ==> #(and now i am a vector) (eq? x y) ==> #t
Note: this operation invokes a major garbage collection.
The effect of using object-become! on evicted data (see object-evict) is undefined.