[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua life after integers
- From: Rena <hyperhacker@...>
- Date: Mon, 8 Dec 2014 16:20:25 -0500
On Mon, Dec 8, 2014 at 11:04 AM, Luiz Henrique de Figueiredo
>> If I were going to beg for another new feature/change, it'd be for
>> metamethods to be honored in more cases
> Lua 5.3 does honor more index metamethods in almost all functions.
> What else do you have in mind?
If I'm understanding the manual correctly, lua_tolstring() doesn't
honour __tostring. Similarly lua_tonumberx() doesn't call __tonumber
(if such a metamethod even exists?). The manual also doesn't appear to
specify whether lua_call() will look at __call.
I was also wishing there was lua_geti() and lua_seti(), but it looks
like those did get added at some point. :-) (or were they there all
along and I'm just blind?)
Sent from my Game Boy.