Adding a third option for controlling memory #220
Replies: 2 comments 3 replies
-
I like this mechanism, and Nelua has official support for something like it. It's the https://nelua.io/overview/#defer |
Beta Was this translation helpful? Give feedback.
-
Ah I see.
Nice! That's good to know; I learned something new today! Cheers @edubart 👍 |
Beta Was this translation helpful? Give feedback.
-
A couple of weeks ago I read this article https://lwn.net/Articles/934679/ and reminded me it can be possible to emulate C++'s RAII behavior using GCC's / clang's extension via
cleanup
attribute.@edubart what is your opinion on this kind of mechanism, assuming you are willing to give it a go and let users know this option is available only under GCC and clang?
It's just food for thought, nothing more.
Beta Was this translation helpful? Give feedback.
All reactions