You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows us to add support for functions defined outside of stdin. For a
REPL usecase, this means sending loadfile(<file>)() to the REPL instead of
the lines themselves.
nups ("number of upvalues") can be used to see if the function requires a closure.
With this information we can support functions that:
Do not require closures (i.e. nups == 0)
Are defined somewhere other than stdin
The text was updated successfully, but these errors were encountered:
It's possible that debug.getupvalue makes even closure functions possible, especially for the limited use case of lua code that all lives in a repl.lua that is sent to a REPL.
This allows us to add support for functions defined outside of stdin. For a
REPL usecase, this means sending
loadfile(<file>)()
to the REPL instead ofthe lines themselves.
nups
("number of upvalues") can be used to see if the function requires a closure.With this information we can support functions that:
nups == 0
)The text was updated successfully, but these errors were encountered: