seqlua

diff README @ 32:3ff7cec8d3ce

Do not respect __len metamethods
author jbe
date Sun Aug 24 00:00:43 2014 +0200 (2014-08-24)
parents 4fc9090ada1d
children 25cdfe854335
line diff
     1.1 --- a/README	Sat Aug 23 23:35:10 2014 +0200
     1.2 +++ b/README	Sun Aug 24 00:00:43 2014 +0200
     1.3 @@ -5,13 +5,16 @@
     1.4  
     1.5  * allow ``ipairs(seq)`` to accept tables as well as functions (i.e function
     1.6    iterators),
     1.7 -* add a new function ``string.concat(separator, seq)`` to concat either table
     1.8 -  entries or function return values,
     1.9 +* add a new function ``string.concat(separator, seq)`` to concat either
    1.10 +  table entries or function return values,
    1.11  * provide auxiliary C functions and macros to simplify iterating over both
    1.12    tables and iterator functions with the same statement.
    1.13  
    1.14 -In all cases, existing ``__index``, ``__len``, or ``__ipairs`` metamethods are
    1.15 -respected. The ``__ipairs`` metamethod takes precedence.
    1.16 +Existing ``__ipairs`` or ``__index`` (but not ``__len``) metamethods
    1.17 +are respected by the C and Lua functions as well as C macros. The
    1.18 +``__ipairs`` metamethod takes precedence over ``__index``, while the
    1.19 +``__len`` metamethod is never used.
    1.20 +
    1.21  
    1.22  
    1.23  Lua part of the library

Impressum / About Us