sva40494.scm 260 B

12345678910111213141516
  1. (module-export top-class)
  2. (begin
  3. (define (bottom proc) (proc))
  4. )
  5. (define (top proc)
  6. (bottom (lambda () (proc))))
  7. (define-simple-class top-class ()
  8. ((frob)
  9. (top (lambda () #f))))
  10. (format #t "frob: ~a~%" ((make top-class):frob))
  11. ;; Output: frob: #f