lua-users home
lua-l archive

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


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 <flyer31@googlemail.com> 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.