[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 Reference Manual
- From: Josh Simmons <simmons.44@...>
- Date: Mon, 5 Sep 2011 08:25:22 +1000
On Mon, Sep 5, 2011 at 2:31 AM, Dirk Laurie <dpl@sun.ac.za> wrote:
> 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 lua_pushfstring
> under lua_tolstring
> under luaL_addchar
> under String Manipulation, first paragraph (twice)
> under string.byte
> under string.char
> 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. "
>
> Dirk
>
>
A C char _is_ a Lua character. There's no encoding forced on either
side and there's no concept of a byte in C.