[plt-scheme] Lazy Scheme and continuations

From: Gregory Woodhouse (gregory.woodhouse at sbcglobal.net)
Date: Sat Dec 16 14:52:19 EST 2006

Okay, this is a bit whimsical. I tried entering the following in Lazy  
Scheme (expecting something about an unbound identifier call/cc or  
some such)

(define (f a)
      (lambda (k)
        (if (>= a 0) a
            (k (- 0 a))))))

It does correctly compute the absolute value in normal (er....better  
make that standard) Scheme, but (f -4) seems to loop indefinitely in  
Lazy Scheme. Now, maybe that's just the point, but I thought it might  
also be possible that it's due to an unrelated bug. Is this behavior  

Gregory Woodhouse
gregory.woodhouse at sbcglobal.net

Metaphors be with you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20061216/20bfad1c/attachment.html>

Posted on the users mailing list.