|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
|
\def\pythonEd{1}
|
|
|
-\def\edition{1}
|
|
|
+\def\edition{0}
|
|
|
|
|
|
% material that is specific to the Racket edition of the book
|
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
@@ -11533,9 +11533,10 @@ program:\\
|
|
|
\begin{lstlisting}
|
|
|
(let ([x 2])
|
|
|
(let ([y 0])
|
|
|
- (+ y (let ([t1 (get! x)])
|
|
|
- (let ([t2 (begin (set! x 40) (get! x))])
|
|
|
- (+ t1 t2))))))
|
|
|
+ (let ([t1 x])
|
|
|
+ (let ([t2 (begin (set! x 40) x)])
|
|
|
+ (let ([t3 (+ t1 t2)])
|
|
|
+ (+ y t3))))))
|
|
|
\end{lstlisting}
|
|
|
\end{minipage}
|
|
|
The temporary variable \code{t1} gets the value of \code{x} before the
|