lua-users home
lua-l archive

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


Op Di. 4 Des. 2018 om 13:10 het Philippe Verdy <verdy_p@wanadoo.fr> geskryf:
>
> Le mar. 4 déc. 2018 à 06:42, Dirk Laurie <dirk.laurie@gmail.com> a écrit :
>>
>> Op Di. 4 Des. 2018 om 01:11 het Muh Muhten <muh.muhten@gmail.com> geskryf:
>> $ /usr/local/src/lua-5.3.3/src/lua
>> Lua 5.3.3  Copyright (C) 1994-2016 Lua.org, PUC-Rio
>> > n=13835058055282163712; print(n)
>> -4611686018427387904
>
>  [...]
>>
>> Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
>> > n=0xc000000000000000; print(n)
>> -4611686018427387904
>
>
> Personally I call these two examples "bugs" because they generate the incorrect values.

You could argue that the Lua designers thought so too, because:
1. They changed it in te next minor release.
2. Minor releases are bugfix releases.