lua-users home
lua-l archive

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


> 2013/9/10 Andrew Starks <andrew.starks@trms.com>:
> 
> > In my very humble opinion (and despite my own transgressions into
> > discussions on its redesign :), it gets this balance perfectly... Except
> > when it prompts strings to numbers. .)
> 
> More precisely: the exact spot where this irks me is that if you set
> metamethods for str:__add etc, they don't get invoked when tonumber()
> succeeds for both operands, EVEN WHEN BOTH ARE STRINGS.

Wthat do you mean, exactly? Can you please give an example?