News for hackers. Stuff that matters.
Re:Lua Is So Underrated by wruza on Thursday December 26, 2024 @09:40PM (#42519524)
Lua stack basically works as an arena if you aren’t eager to clean it.

I guess in C one could macro hack himself a similar arena to borrow objects from python runtime.

In C++ it’s a matter of befriending a smart pointer with ref/unref calls. It was probably done hundreds of times in all sorts of python embedding wrappers.

There are no comments on this comment yet.