#!/usr/bin/sbcl --script
(defvar p (cons 1 2))               ; the pair (1 . 2)
(defvar foo (cons "Foo" p))         ; ("Foo" . (1 . 2))
(defvar bar (cons "Bar" p))         ; ("Bar" . (1 . 2))

(format t "foo = ~s~%bar = ~s~%" foo bar)
(format t "the same pair: ~a~%" (eq (cdr foo) (cdr bar)))

(setf (car (cdr foo)) 100)          ; change it through foo only

(format t "after the change through foo:~%")
(format t "foo = ~s~%bar = ~s~%" foo bar)
