ソースを参照

address a comment from Jeremy re Rvar's overflow semantics

Andrew Tolmach 4 年 前
コミット
23178d008c
1 ファイル変更3 行追加1 行削除
  1. 3 1
      book.tex

+ 3 - 1
book.tex

@@ -1414,7 +1414,9 @@ exit with a return code of \code{255}.  The interpreters in chapters
 \begin{ocamlx}
   In OCaml, overflow does not cause a trap; instead values ``wrap around''
   to produce results modulo $2^{63}$.  The result of this program is
-  \key{-1223372036854775816}.
+  \key{-1223372036854775816}.  We will embrace this wrap-around behavior 
+  as the intended one for \LangInt{}, so the OCaml version will have
+  no undefined behaviors due to overflow. 
 \end{ocamlx}
 
 %% This convention applies to the languages defined in this