Closed tp86 closed 1 year ago
I have played with REPL a little bit and attempted to get consistent behavior between Lua and Erde.
In REPL before:
$ erde Erde 0.5-1 on Lua 5.4 -- Copyright (C) 2021-2023 bsuth > f = () -> (nil, 2, nil) > f() >
In REPL after:
$ erde Erde 0.5-1 on Lua 5.4 -- Copyright (C) 2021-2023 bsuth > f = () -> (nil, 2, nil) > f() nil 2 nil >
Lua REPL for comparison:
$ lua Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio > f = function() return nil, 2, nil end > f() nil 2 nil >
Additionally, it fixed return values from erde.run: Before:
erde.run
$ lua Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio > erde = require('erde') > erde.run('return nil, 2, nil') nil 2 >
After:
$ lua Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio > erde = require('erde') > erde.run('return nil, 2, nil') nil 2 nil >
Will be done in another PR (#13)
I have played with REPL a little bit and attempted to get consistent behavior between Lua and Erde.
In REPL before:
In REPL after:
Lua REPL for comparison:
Additionally, it fixed return values from
erde.run
: Before:After: