rvirding / luerl

Lua in Erlang
Apache License 2.0
1.02k stars 140 forks source link

Use MFA triplets instead of function references #156

Closed cdegroot closed 11 months ago

cdegroot commented 11 months ago

[Copy/continuation of #155]

This leaves the current function reference support in place, but adds support for MFA triplets. Without these references, Lua VM states become externalizable.

Even though the "A" is not used at the moment, MFA is a standard way to reference functions in Erlang and the added argument does not add a lot of overhead but should allow for "neat stuff".

All library functions have been converted, which means that the result of luerl:init() is now externalizable.