kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.62k stars 59 forks source link

Unexpected values when calling function #72

Closed Jengamon closed 2 months ago

Jengamon commented 2 months ago

So, on latest (9d4906b as of writing)

local function abc(a, b, c)
    print(b, c)
    return a.x
end

print(abc {x = 3})

Piccolo Output

0   nil
3

PUC-Rio Lua Outut

nil     nil
3