[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Wishful request for next version: '// 1' should produce integer
- From: Flyer31 Test <flyer31@...>
- Date: Sun, 9 Jan 2022 13:16:14 +0100
PS: Sorry, just recognized your post before where you gave the meaning
of x @= y... all clear then for @=, why not.. .
On Sun, Jan 9, 2022 at 1:13 PM Flyer31 Test <firstname.lastname@example.org> wrote:
> >> 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.