lua-users home
lua-l archive

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


2013/7/8 Miles Bader <miles@gnu.org>:
> steve donovan <steve.j.donovan@gmail.com> writes:
>> On Mon, Jul 8, 2013 at 9:31 AM, Miles Bader <miles@gnu.org> wrote:
>>
>>> Hmm, I think I'd prefer math.idiv...  oO;
>>>
>> Why not just check _VERSION, unless I'm missing a subtlety?
>
> (1) doesn't work
>
> (2) _VERSION checks are ugly/flaky anyway, I'd prefer feature checks
>     where possible (e.g. the way it checks whether math.ifloor is nil
>     or not)
>
> Rena's version will "work" but it's gross...

<sigh> here we go again ... </sigh>

If compatibility with 5.2 is that crucial, why insist on writing code
that in Lua 5.3 will return true integers? Why not just write in Lua
5.2 and trust the developers to provide a compatibility option?