Browse Source

get the racket version to compile

Jeremy Siek 3 năm trước cách đây
mục cha
commit
24562990d0
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      book.tex
  2. 1 1
      defs.tex

+ 2 - 2
book.tex

@@ -25,7 +25,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}}
@@ -16317,7 +16317,7 @@ Furthermore, even when primitive operations restrict their inputs to
 values of a certain type, this restriction is enforced at runtime
 instead of during compilation. For example, the tuple read
 operation
-\racket{\code{(vector-ref #t 0)}}
+\racket{\code{(vector-ref \#t 0)}}
 \python{\code{True[0]}}
 results in a run-time error because the first argument must
 be a tuple, not a Boolean.

+ 1 - 1
defs.tex

@@ -165,7 +165,7 @@
 \newcommand{\CGLOBAL}[1]{#1\key{(\%rip)}}
 \newcommand{\GLOBALVALUE}[1]{\LP\key{GlobalValue}~#1\RP}
 \newcommand{\CGLOBALVALUE}[1]{\LP\key{global-value}~#1\RP}
-\newcommand{\ARITY}[1]{{\LP\key{Prim}~\code{procedure-arity}~\LP#1\RP\RP}
+\newcommand{\ARITY}[1]{\LP\key{Prim}~\code{procedure-arity}~\LP#1\RP\RP}
 \newcommand{\CARITY}[1]{\LP\key{procedure-arity}~#1\RP}
 \fi