lua-users home
lua-l archive

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




On 2018-01-01 10:53 AM, Daurnimator wrote:
On 1 January 2018 at 23:49, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
I noticed that the Lua arithmetic operators in 5.4 will not coerce
strings to numbers ... is my understanding correct? I think this is
good for performance as it avoids a function call for converting
values but presumably this is a breaking change for existing code that
may be relying on this feature?
See previous discussions around LUA_NOCVTS2N
e.g. http://lua-users.org/lists/lua-l/2015-01/msg00623.html

Also noticed that var args will now be put into a table - wanted to
check if this is just an implementation detail - i.e. no user visible
impact on either Lua or the C API?
_ARG is user-visible.


Ooh select()-free vararg indexing, this will be interesting!

I guess ... is just a glorified (read: faster) table.unpack?

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.