sarabander / sicp-pdf

SICP PDF with Texinfo and LaTeX source
http://sicpebook.wordpress.com/
4.26k stars 537 forks source link

Exercise 1.6 lacks the answer #7

Closed minghai closed 10 years ago

minghai commented 10 years ago

Hi.

It seems like the PDF lacks the number 0 in Exercise 1.6 where Eva Lu Ator's 2nd demonstlation.

(new-if (= 1 1) 0 5) 0 <- This 0 disappeared.

sicp.texi has no problem. But sicp.tex has this problem. I think Perl script removes 0

Original text is here. http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-10.html#%_thm_1.6

sarabander commented 10 years ago

Good catch! You're right, Perl script ate it. I guess I tried to collapse whitespace or something, but forgot that '0' is false in Perl. Thanks!