[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Returning multiple values from the __index metamethod
- From: Geoff Leyland <geoff_leyland@...>
- Date: Mon, 4 Oct 2010 19:52:05 +1300
On 4/10/2010, at 7:20 PM, Patrick Donnelly wrote:
> On Mon, Oct 4, 2010 at 1:57 AM, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
>> Since I imagine the LRM is getting edited for 5.2, any chance the pseudo-code could be updated something like this, or an explanation added?
>>
>> if type(h) == "function" then
>> return (h(table, key))
>> else ...
>
> The manual has already been updated [1].
>
> [1] http://www.lua.org/manual/5.1/manual.html#2.8
Thanks! Serves me right for using paper.