Hi,<br><br>(this is somewhat related to bug report `all/11165' )<br><br>I'm not sure this is a bug since the interaction window is something <br>quite different from the execution of a program, but the following does<br>
weird things.<br><br>#lang racket<br><br>(define x #f)<br>(define r #f)<br><br>(set! x <br> (call/cc (lambda(k)<br> (set! r k)<br> (k 3))))<br><br>(displayln x)<br>
(r 4)<br>(displayln x)<br>(r 5)<br>(displayln x)<br><br>This is ok and prints 3, 4 and 5.<br>Now go to the interaction window:<br>> x<br>5<br>> r<br>#<continuation><br>> (r 6)<br>> x<br>5<br>> r<br>6<br>
<br>It looks like its sets r instead of x.<br><br>Even if the interaction window has its own prompt, <br>the previous example looks odd to me.<br>Can anyone enlighten me?<br><br>-- <br>Laurent<br><br><br>