Doug Rogers wrote:
Michal Kolodziejczyk wrote:
I am also missing __tonumber metamethod...
It seems like this could be a useful feature, but if it were to
behave
like __tostring it would be of limited value - limited to programmers
calling tonumber() explicitly.
Yes, I am aware of that, and this is what I meant - use __tonumber
only
when explicity calling tonumber() (and maybe adding an optional number
base as a second argument to __tonumber). I did not mean to change the
internals of VM (as I also appreciate the simplicity of lua).