[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Wishful request for next version: '// 1' should produce integer
- From: Flyer31 Test <flyer31@...>
- Date: Sun, 9 Jan 2022 13:13:53 +0100
>>
>> I'd prefer some sort of @+, @-, @/, @%, @//, @^, @= for integer operators.
>
>
> There is no need to introduce new metamethods for these operators.
Also nice maybe. But I think "@=" in your list is accident? Or what
would be purpose of "@="? (and then of course @/ would replace // I
think (NOT @//).
... but having some more metafunctions in any case would be nice I
think, why not (if it does not slow down Lua at critical points...)
... if you use metamethods for a special variable type, you typically
will be happy to have as many options as possible.