# HG changeset patch # User jbe # Date 1408510034 -7200 # Node ID 431fa6946a61455a2d0bd163ed256e9462e9c166 # Parent 12a7a8f5a77de20b1ae978aff1864485b0b34279 Precedence of __call and __index noted in README diff -r 12a7a8f5a77d -r 431fa6946a61 README --- a/README Wed Aug 20 06:40:46 2014 +0200 +++ b/README Wed Aug 20 06:47:14 2014 +0200 @@ -12,9 +12,10 @@ tables and iterator functions with the same statement. This library completely ignores the ``__ipairs`` metamethod (as it is -deprecated since Lua 5.3.0-alpha). It respects, however, any ``__call`` -metamethods (this may cause unexpected behavior when passing callable tables -to ``ipairs``). +deprecated since Lua 5.3.0-alpha). It respects, however, any ``__index`` and +``__call`` metamethods (this may cause unexpected behavior when passing +callable tables to ``ipairs``). The ``__call`` metamethod takes precedence over +an existing ``__index`` metamethod.