lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi!

2011/5/24 Dirk Laurie <dpl@sun.ac.za>:
> Sorry for betraying my newbie-ness, this question was probably asked
> fifteen years ago.
>
> In the Lua API, Lua strings are mapped to C "char*".  Is this just a
> historical accident or a closely reasoned decision, such as that the
> convenience of the test "if (c<0)" to detect non-ASCII [...]

Don't assume that char is signed... That is platform and compiler specific.

Regards,
Matthias