lua-users home
lua-l archive

Re: Shouldn't "char*" be "unsigned char*"?

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


2011年5月25日 Matthias Kluwe <mkluwe@gmail.com>:
> 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.
Oops, just noticed Rob already mentioned this point. Apologies for the noise.

AltStyle によって変換されたページ (->オリジナル) /