lua-users home
lua-l archive

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


> > Also, I notice that overriding any of the operator
> > metamethods (like __div) for numbers has no effect. Is this for
> > performance reasons?
>
> Yes, very much so. Requiring a check for every primitive
> operation on numbers would slow Lua to a crawl.

Makes perfect sense. Thanks.

-Paul