[racket] call-with-composable-continuation and DrRacket

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Thu Aug 30 17:48:47 EDT 2012

When I run this in the definitions window of DrRacket
#lang racket
(+ 100
   (call-with-composable-continuation
    (λ (k) (+ 1000 (k 1)))))

it prints
101
1201
in the interactions window.
Why doesn't it just print 1201 ?

Executing it in the interactions window gives the expected result of 1201.

Thanks,
Harry Spier


Posted on the users mailing list.