lua-users home
lua-l archive

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


On Fri, Apr 11, 2014 at 9:29 PM, Doug Currie <doug.currie@gmail.com> wrote:
Wouldn't it be more logical, if exponentiation with negative
exponent would convert the base argument to float, similar to the
division case?

Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio

> =4^(-1)

0.25

-- e


So it works as expected in 5.2 but not in 5.3. Seems like a bug. Even if intended, I don't like it for the potential to break existing code for no good reason.

--
Sent from my Game Boy.