[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tonumber metamethod?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 21 Dec 2004 23:34:17 -0200
> is there any particular reason why there is a tostring but not a
> tonumber metamethod?
No reason, except that it never came up. What would you use a tonumber
metamethod for?
Also, please note that the tostring metamethod is not actually a core
metamethod, but rather a feature of the tostring function (and print
uses tostring).
--lhf