[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: String-to-number coercion
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 10 Sep 2013 10:54:34 +0200
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.