[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_Integer in Lua 5.3
- From: Lourival Vieira Neto <lourival.neto@...>
- Date: Thu, 5 Dec 2013 18:21:58 -0200
On Thu, Dec 5, 2013 at 5:22 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> And the implementation uses _at least_ 64-bit integers. As both long
>> long and int64_t are C99, why do not use int64_t?
>
> I think that was answered several times, but here it goes again: in
> real life, long long is more widespread and better supported than
> int64_t.
Sorry, I didn't read it on the list. I should have tried better to
find it before asking.
> (For instance, in my Linux, printf has a modifier for long long
> [ll], but there is no modifier for int64_t.)
Are you sure that you don't have PRI{d,i,o,u,x,X}64 on your system?
>> Anyway, I think that the manual could be clearer in this point. Also,
>> lua_Integer definition should be fixed in the section 4.8 of the
>> manual, as it is defined as long long by default, not ptrdiff_t.
>>
>> [1] http://www.lua.org/work/doc/manual.html#2.1
>
> That is an error in the manual. That definition was not updated to
> 5.3. (Come on, that was a work version...) Forget the ptrdiff_t.
=).
Regards,
--
Lourival Vieira Neto