rvirding / luerl

Lua in Erlang
Apache License 2.0
1.03k stars 141 forks source link

Use MFA triplets instead of function references #155

Closed cdegroot closed 1 year ago

cdegroot commented 1 year ago

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.

cdegroot commented 1 year ago

Closing this PR as I lost access to the Metrist-Software upstream repo.