[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Returning multiple values from the __index metamethod
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 4 Oct 2010 02:20:32 -0400
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
--
- Patrick Donnelly