Skip to content

Instantly share code, notes, and snippets.

@kostja
Created April 14, 2015 09:46
Show Gist options
  • Save kostja/71ad8d882bee6261980c to your computer and use it in GitHub Desktop.
Save kostja/71ad8d882bee6261980c to your computer and use it in GitHub Desktop.
lua call conversion rules
tarantool> function foo() return end
---
...
tarantool> c:call('foo')
---
- []
...
tarantool> function foo() return nil end
---
...
tarantool> c:call('foo')
---
- - [null]
...
tarantool> function foo() return 1 end
---
...
tarantool> c:call('foo')
---
- - [1]
...
tarantool> function foo() return 1, 2, 3 end
---
...
tarantool> c:call('foo')
---
- - [1]
- [2]
- [3]
...
tarantool> function foo() return {} end
---
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment