luerl icon indicating copy to clipboard operation
luerl copied to clipboard

Lua in Erlang

Results 43 luerl issues
Sort by recently updated
recently updated
newest added

There is this closed issue related to string.gmatch: https://github.com/rvirding/luerl/issues/43 I would guess that the trickiness of implementing this is the stateful iterator gmatch should return. Erl_func can't have mutable variables....

The following Lua script creates a function and stores that function in a global table `rememberedFunctions` This anonymous function is created with an environment to hold an argument from the...

```lua crash = function() return 10/0 end return pcall(crash) ``` This still crashes in luerl, ignoring the supposed protection of "pcall". The official lua returns inf, when divided by zero....

like how does it work? I didn't really understand it from the comments in src/luer.erl or the wiki. Maybe an example project that uses different ways to extend the functions...

if you feel this can be useful, you can merge this pull request and enable to run the tests on travis-ci.com I tried with a PR on my own fork....

this is to test a decimal "class" used with require and contains metatable/metamethods

This is experimental to get some feedback @rvirding