[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 Reference Manual
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Sun, 04 Sep 2011 18:41:55 +0200
On 04/09/2011 18.31, Dirk Laurie wrote:
IIRC C standard doesn't guarantee that a char is the same size of a
byte, although that's almost ubiquitous. So a "char" could be not a
"byte" on some exotic platforms.
Since a C "char" is not a Lua "character", consider using
"byte" instead of "character" at the following places:
under Lexical Conventions, in "a character in a literal string"
under String Manipulation, first paragraph (twice)
under file:read() (twice)
Also, under string.char, consider changing the last sentence to:
"Note that the characters corresponding to numerical codes are
not necessarily portable across platforms. "
So, e.g., in luaL_addchar saying:
"Adds the byte c to the buffer..." would be plainly wrong in those