Skip to content
Snippets Groups Projects
  • Konstantin Osipov's avatar
    c452cb5b
    Lua: implement tuple iterators and methods. · c452cb5b
    Konstantin Osipov authored
    Add tuple::pairs() and tuple:next() implementation.
    
    Update tuple metatable __index implementation to do
    method lookup.
    
    Fix a bug in box.unpack() where we wouldn't check that
    lua_tolstring() can return NULL (which happens if nil
    is on the stack).
    
    Add tests.
    c452cb5b
    History
    Lua: implement tuple iterators and methods.
    Konstantin Osipov authored
    Add tuple::pairs() and tuple:next() implementation.
    
    Update tuple metatable __index implementation to do
    method lookup.
    
    Fix a bug in box.unpack() where we wouldn't check that
    lua_tolstring() can return NULL (which happens if nil
    is on the stack).
    
    Add tests.