Browse Source

change Apply to Call in python version

Jeremy G. Siek 1 year ago
parent
commit
13a93dba2d
1 changed files with 16 additions and 9 deletions
  1. 16 9
      book.tex

+ 16 - 9
book.tex

@@ -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}}
@@ -15947,14 +15947,21 @@ be updated with cases for
 \racket{\code{Apply}}\python{\code{Call}} and \code{FunRef} and the
 function for predicate context should be updated for
 \racket{\code{Apply}}\python{\code{Call}} but not \code{FunRef}.  (A
-\code{FunRef} cannot be a Boolean.) In assignment and predicate
-contexts, \code{Apply} becomes \code{Call}\racket{, whereas in tail position
-\code{Apply} becomes \code{TailCall}}.  We recommend defining a new
-auxiliary function for processing function definitions.  This code is
-similar to the case for \code{Program} in \LangVec{}.  The top-level
-\code{explicate\_control} function that handles the \code{ProgramDefs}
-form of \LangFun{} can then apply this new function to all the
-function definitions.
+\code{FunRef} cannot be a Boolean.)
+
+In assignment and predicate contexts,
+%
+\racket{\code{Apply} becomes \code{Call}, whereas
+in tail position \code{Apply} becomes \code{TailCall}}
+%
+\python{\code{Call} remains \code{Call}, whereas
+in tail position \code{Call} becomes \code{TailCall}}.
+%
+We recommend defining a new auxiliary function for processing function
+definitions.  This code is similar to the case for \code{Program} in
+\LangVec{}.  The top-level \code{explicate\_control} function that
+handles the \code{ProgramDefs} form of \LangFun{} can then apply this
+new function to all the function definitions.
 
 {\if\edition\pythonEd\pythonColor