PLP 5e Errata
This page contains a list of all known errors in the text.
To report additional bugs, send mail to
or
.
Main book
-
Page 46, line 2: delete “
sizeof,” (it’s a
keyword).
-
Page 174, Exploration 3.41, last full line: replace “are their
any” with “are there any”.
-
Page 184, Figure 4.4, last four lines: replace
“ “+” ”,
“ “−” ”,
“ “×” ”,
and
“ “/ ” ”,
with
“ op(+) ”,
“ op(−) ”,
“ op(×) ”,
and
“op(/)”,
respectively.
-
Page 187, Figure 4.6, last four lines: replace
“ “+” ”,
“ “−” ”,
“ “×” ”,
and
“ “/ ” ”,
with
“ op(+) ”,
“ op(−) ”,
“ op(×) ”,
and
“op(/)”,
respectively.
-
Page 195: the conclusion of rule ev-trunc should be E ⊢ trunc(e) ⇓ n
-
Page 196, Figure 4.9:
the conclusion of rule ev-lit should be E ⊢ v ⇓ v.
The conclusion of rule ev-trunc should be E ⊢ trunc(e) ⇓ n
-
Page 205, last two lines: replace “Python, Ruby, or
JavaScript” with “Python or Ruby”.
-
Page 210, Fig. 4.13,
ninth line of body of typecheck_expr:
replace “float” with
“real”.
12th line of body of typecheck_stmt:
replace “type_expr” with
“typ_expr”,
“type_x” with “typ_x”,
and “error type” with
“error_type”.
-
Page 513, Fig. 9.6, second line of body of
main:
replace “int n” with “unsigned int
n”.
-
Page 524, Fig. 10.1: replace first line of body of method
contains with
if (data == this.data)
return true;
else if (next == null)
-
Page 526, Example 10.5: replace first line of body of method
Link::contains with
if (data == this->data)
return true;
else if (next == NULL)
-
Page 530, Exercise 10.10, fourth-to-last line: replace “single
super of” with “single super
or”.
-
Page 535, code at top of page: replace first line of body of method
contains with
if (data == this.data)
return true;
else if (next == null)
Companion site
Thanks to Johann Klähn, Iman Mohammadi, Minh Nguyen, and John
Wesley for their help in catching these mistakes (and others on this website).
Back to the book home page