lua-users home
lua-l archive

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


On Sat, Mar 20, 2010 at 7:04 PM, Christopher Eykamp <chris@eykamp.com> wrote:
> If this works:
>
>   newpt = bot:getLoc():__mul(2)
>
> Shouldn't this:
>
>   newpt = bot:getLoc() * 2

Without knowing anything else about your situation, it looks like you
set __mul on the table itself, rather than on its metatable.

~Jonathan