[racket] begin vs +

From: Keiko Nakata (keiko at kurims.kyoto-u.ac.jp)
Date: Mon Aug 2 08:54:54 EDT 2010

Actually, I didn't see.

Why this code 

(let ([d (box #f)] [a (box 0)])
  (print (+ (begin (let/cc k (begin (set-box! d k) (set-box! a 2) 3))) (unbox a)))
  ((unbox d) 9))

prints 511111111, rather than 59999999?

Keiko


Posted on the users mailing list.