Explorar o código

get the racket version to compile

Jeremy Siek %!s(int64=3) %!d(string=hai) anos
pai
achega
24562990d0
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      book.tex
  2. 1 1
      defs.tex

+ 2 - 2
book.tex

@@ -25,7 +25,7 @@
 
 
 \def\racketEd{0}
 \def\racketEd{0}
 \def\pythonEd{1}
 \def\pythonEd{1}
-\def\edition{1}
+\def\edition{0}
 
 
 % material that is specific to the Racket edition of the book
 % material that is specific to the Racket edition of the book
 \newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
 \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
 values of a certain type, this restriction is enforced at runtime
 instead of during compilation. For example, the tuple read
 instead of during compilation. For example, the tuple read
 operation
 operation
-\racket{\code{(vector-ref #t 0)}}
+\racket{\code{(vector-ref \#t 0)}}
 \python{\code{True[0]}}
 \python{\code{True[0]}}
 results in a run-time error because the first argument must
 results in a run-time error because the first argument must
 be a tuple, not a Boolean.
 be a tuple, not a Boolean.

+ 1 - 1
defs.tex

@@ -165,7 +165,7 @@
 \newcommand{\CGLOBAL}[1]{#1\key{(\%rip)}}
 \newcommand{\CGLOBAL}[1]{#1\key{(\%rip)}}
 \newcommand{\GLOBALVALUE}[1]{\LP\key{GlobalValue}~#1\RP}
 \newcommand{\GLOBALVALUE}[1]{\LP\key{GlobalValue}~#1\RP}
 \newcommand{\CGLOBALVALUE}[1]{\LP\key{global-value}~#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}
 \newcommand{\CARITY}[1]{\LP\key{procedure-arity}~#1\RP}
 \fi
 \fi