Hello,<div><br></div><div>I was playing with call/cc, and found that the following interaction crashes DrRacket:</div><div><br></div><div>1) Write in "Definitions" area:</div><div><div>#lang racket</div><div>(define K #f)</div>
<div>(define x (call/cc </div><div> (lambda (k) </div><div> (set! K k) </div><div> 10)))</div></div><div><br></div><div>2) Push the "Run" button;</div><div><br></div><div>3) Write in the "Interaction" area:</div>
<div>(K 20)</div><div><br></div><div>-----</div><div><br></div><div>I would expect it to redefine x to 20, or maybe to give the error message:</div><div>"define-values: cannot re-define a constant: x"</div><div>
<br></div><div>But instead it just crashes and closes. Is this expected behavior?</div><div>I'm using Ubuntu 10.04 with the DrRacket 5.0.1 downloaded from the web site.</div><div><br></div><div>Thanks,</div><div><br></div>
<div>Reginaldo</div>