lua-users home
lua-l archive

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


>>
>> 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.