seqlua

diff README @ 6:7b05ca6ef925

Allow seqlua_iterinit to modify the value on stack instead of storing an extra element on stack
author jbe
date Wed Aug 20 01:52:35 2014 +0200 (2014-08-20)
parents e29e2d7b73a5
children 2cb22d01fdd0
line diff
     1.1 --- a/README	Wed Aug 20 01:45:04 2014 +0200
     1.2 +++ b/README	Wed Aug 20 01:52:35 2014 +0200
     1.3 @@ -133,9 +133,9 @@
     1.4  
     1.5      printcsv{"a", "b", "c"}  -- prints: a,b,c
     1.6  
     1.7 -NOTE: ``seqlua_iterinit`` will store one extra element on the stack during
     1.8 -iteration. When ``seqlua_iternext`` returns 0, this extra element is popped
     1.9 -from the stack automatically.
    1.10 +NOTE: If the index passed to ``seqlua_iterinit`` points to a value that has a
    1.11 +``__call`` metamethod, then the value at the stack position will be replaced by
    1.12 +that metamethod.
    1.13  
    1.14  Additionally, ``seqlualib`` includes a function ``seqlua_iterclosure(L, idx)``,
    1.15  which converts a table at a given stack index into a function closure (stored

Impressum / About Us