seqlua

changeset 43:1a0ce77d9e4b

Removed (wrong) example in README
author jbe
date Mon Aug 25 03:51:00 2014 +0200 (2014-08-25)
parents a862f3246b48
children de5e7dd93863
files README
line diff
     1.1 --- a/README	Mon Aug 25 03:44:51 2014 +0200
     1.2 +++ b/README	Mon Aug 25 03:51:00 2014 +0200
     1.3 @@ -111,16 +111,8 @@
     1.4  (as previously shown).
     1.5  
     1.6  Where desired, it is also possible to use metamethods to customize iteration
     1.7 -behavior. Consider:
     1.8 -
     1.9 -    function process_row(database_row)
    1.10 -      -- some function
    1.11 -    end
    1.12 -    local result = sql_query("SELECT * FROM actor")
    1.13 -    process_row(result)  -- without writing :rows() or similar
    1.14 -
    1.15 -This extension, however, doesn't respect the ``__len`` metamethod due to the
    1.16 -following reasons:
    1.17 +behavior. This extension, however, doesn't respect the ``__len`` metamethod due
    1.18 +to the following reasons:
    1.19  
    1.20  * An efficient implementation where ``for i, v in ipairs(tbl) do ... end`` does
    1.21    neither create a closure nor repeatedly evaluate ``#tbl`` seems to be

Impressum / About Us