rvirding/luerl — pull request #12 by dumbbell (2012-09-26 16:29:01+00:00)
Title: luerl_eval:call/3: Support the 5-elements function tuple

This fixes the case where a reference to a function is returned by a Lua
code and executed from an Erlang function.

Here's a code sample:
```erlang
% Load Lua script.
{ok, Chunk} = luerl:loadfile("callback.lua"),
% Run the script: it returns a reference to a function.
St = luerl:init(),
{[Fun | _], St1} = luerl:do(Chunk, St),
% Execute the returned Lua function.
luerl:call(Fun, [], St1).
```

The callback.lua script could be:
```lua
function callback()
print("It works!")
end
return callback
```