location1.scm 361 B

1234567891011121314
  1. (define (test-location-local x)
  2. (let ((xl (location x)))
  3. (let ((z (xl)))
  4. (let* ((zr (object ()
  5. ((doit)
  6. (location z))))
  7. (zl (zr:doit)))
  8. (set! (xl) (+ (zl) 100))
  9. x))))
  10. (format #t "test-location-local 10: ~w~%"
  11. (test-location-local 10))
  12. ;; Output: test-location-local 10: 110