[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Shouldn't "char*" be "unsigned char*"?
- From: Dirk Laurie <dpl@...>
- Date: Tue, 24 May 2011 10:43:13 +0200
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 is more
important than the inconvenience of occasional casts from "char*" to
"unsigned char*"?
Dirk