[plt-scheme] Question on the teachpack world.ss

From: Jean-Paul ROY (roy at unice.fr)
Date: Fri Jan 11 09:34:50 EST 2008

Can you explain me why this code stops, prints "End" at the toplevel,  
but not the text "Over !" in the canvas ?
Everything else fine.
Thanks (DrScheme v371, MacOS-X 10.5) :

(define (next world)
   (if (crashed? world)             ; ok
     (begin (place-image (text "Over !" 48 "blue") 100 100 (empty- 
scene WIDTH HEIGHT)) ; nothing happens !
            (end-of-time "End"))    ; ok
     (new-world ...)))              ; ok

(on-tick-event next)

By the way, it is a bit annoying to be limited to "advanced student"  
to run this teachpack, why not full Scheme ?


    Jean-Paul Roy

Posted on the users mailing list.