(let ((what's-for-breakfast ())
      (bad-dog 'fido))        ; bad-dog wonders what's for breakfast?
  (with-baffle                ; the syntax is (with-baffle . body)         
   (set! what's-for-breakfast
         (call/cc
          (lambda (biscuit?)
            (set! bad-dog biscuit?) ; bad-dog smells a biscuit!
            (biscuit? 'biscuit!)))))
  (if (eq? what's-for-breakfast 'biscuit!) 
      (bad-dog 'biscuit!))     ; now, outside the baffled block, bad-dog wants 
that biscuit!
  what's-for-breakfast)        ;   but s7 says "No!": baffled! ("continuation 
can't jump into with-baffle")


_______________________________________________
Cmdist mailing list
[email protected]
http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to