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 PR in the Fennel repl implements this feature using debug.getlocal by splicing in some code to save off and reintroduce locals to every chunk: bakpakin/Fennel#114
I'd be interested to hear what you think about it. Though the PR is for Fennel, the exact same approach should work for Lua.
Thanks; I'm not doing much Lua these days but I might circle back to this at some point. If anyone wants to beat me to it it'd probably happen quicker that way. =)
Ideas for how this could work:
debug.sethook
to catch the return of our compiled chunk and grab its localsThe text was updated successfully, but these errors were encountered: