[Rpm-maint] [rpm-software-management/rpm] Make interactive Lua mode actually interactive (#1632)

Panu Matilainen notifications at github.com
Wed Apr 14 10:14:46 UTC 2021


> May be it is worth peaking into the actual lua shell sources. I'd expect that there should be a way to retrieve the value of the last expression somehow using the lua C API. 

Yup, already did. Handling this isn't entirely trivial even for Lua itself, see https://github.com/lua/lua/blob/eadd8c7178c79c814ecca9652973a9b9dd4cc71b/lua.c#L365 down to doREPL(). Would be nice, but I'm not sure it's worth all that trouble.

To complicate matters, in the macro realm the values are not returned via Lua stack but a special printbuffer thing. I have this feeling there's quite a bit of unnecessary complexity surrounding that stuff...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1632#issuecomment-819404881
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210414/26db274f/attachment.html>


More information about the Rpm-maint mailing list