lua-users home
lua-l archive

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

This is funny but our should do boolian with number after last conversion 4/2 is int as result 4/2.0 like float resul conversation

-----Ursprüngliche Nachricht----- From: Charles Melice
Sent: Wednesday, December 31, 2014 12:13 PM
To: 'Lua mailing list'
Subject: RE: [ANN] Lua 5.3.0 (rc2) now available

I wonder if it would not have been simpler to add a LUA_TINTEGER type,
without automatic coercion (and use the C rules for divisions) ?

-- this sequence look strange.

x=4/2 -- float
y=x&2 -- accepted
y=x&1 -- error: number (global 'x') has no integer representation

-----Message d'origine-----
De : [] De la
part de Luiz Henrique de Figueiredo
Envoyé : lundi 22 décembre 2014 15:35
À :
Objet : [ANN] Lua 5.3.0 (rc2) now available

Lua 5.3.0 (rc2) is now available for testing at

MD5 61726271cf342794909a1752ea0c0aae  -
SHA1 457be7b889f7825c3b9c8b9a4b95b85c0c0b434d  -

This is a release candidate for the final release of Lua 5.3.0.

A few things have changed since beta that we'd like to test in the wild.
In particular, we made some changes in luaconf.h and in the Makefile
that we'd like to test. Please try compiling the current code in as many
platforms as possible. We expect the compilation will go smoothly as usual
but please report any warnings or other glitches.

We'd also like feedback on the documentation:

Finally, for those of you into this, please test luac -l -l on your
scripts, just to make sure we haven't missed anything with the new
VM instructions etc.

The main change in Lua 5.3.0 is the introduction of integers. See also

The complete diffs are available at

An updated test suite is available at

All feedback welcome. Thanks.