[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Res: Doubts Lua Programming Gems
- From: Sérgio Medeiros <tampo_8@...>
- Date: Wed, 25 Feb 2009 11:28:36 -0800 (PST)
A few more minor comments:
Chapter 6:
First paragraph: "words as executed as soon as they are read" -> "words are executed as soon as they are read"
Introduction: last paragraph. There is a "(1)" in the middle of the text. Has it any meaning?
Forth via examples: End of first paragraph
Note that "words" are sequences on non-whitespace characters -> Note that "words" are sequences of non-whitespace characters
Chapter 7:
Listing 5: maybe it would be better to remove the comment marks or to align them
Capítulo 8:
First paragraph: I think sentence "adds support the developing web applications" could be changed
to "adds support for developing web applications" or "adds support for the development of web applications"
Request dispatching: Overview
Second paragraph: "an simple way" -> "a simple way"
Example 2: Second paragraph: "we use replace the match function" -> "we replace the match function"
Conclusion: "Instead of locking the user into a specific solutions"
-> "Instead of locking the user into a specific solution"
Chapter 9:
The Lua part of the filter: last paragraph, fourth line: "filer" -> "filter"
Sérgio
----- Mensagem original ----
De: Sérgio Medeiros <tampo_8@yahoo.com>
Para: Lista lua <lua@bazar2.conectiva.com.br>
Enviadas: Quarta-feira, 11 de Fevereiro de 2009 13:52:38
Assunto: Doubts Lua Programming Gems
Hi!
I have started to read the book and I have some doubts
about the chapter 4: Serialization with Pluto
In page 36, the first time Pluto is used, there are some uses
of the "io" library which do not seem correct.
The code there is:
infile = io.open("test.plh", "rb")
encoded = io.read("*a")
infile.close()
I think it should be:
infile = io.open("test.plh", "rb")
encoded = infile:read("*a") -- using the file handle "infile"
infile:close() -- using the ":" operator now
The same thing happens in Listing 2.
Two minor comments about Chapter 3: Vardump
Page 29, third paragraph: I think "an generic" should be "a generic"
Listing 1: in the second "if-else", the else's alternatives are not aligned.
Sérgio
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com