lua-users home
lua-l archive

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

On 2017-06-19 23:49, Italo Maia wrote:
(1) '5' + 5 gives you an 10.0 in the interactive console. Isn't this a
weakly typed language behavior?
(2) '5' + 5 > 10.0, string plus integer equals float. If an error was throw
here, it would be easier to understand than the given behavior.

#define LUA_NOCVTS2N

(And yes, I've used that a bunch of times. But I also occasionally use the implicit conversion -- both have their uses.)

-- nobody