[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [5.4] The string metatable and arbitrary-precision arithmetic
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 26 Jun 2018 17:52:37 +0200
2018-06-26 16:30 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> If backward compatibility of coercion arithmetic is not desired, these
>> metamethods could be replaed to give arbitrary-precision arithmetic.
>
> Very nice! You've reminded me that lbc does not handle __idiv. I'll
> fix that soon.
>
> However, you probably want
>
> for k,v in pairs(meta) do
>
> instead of
>
> for k,v in pairs(bc) do
>
> Otherwise, you'll put a lot of garbage in the string metatable.
Yes, that is the right way round.