Re:How to design a replacement for C++
by moultano on Wednesday July 21, 2010 @10:47PM
(#1537210)
The C++ closure library we use internally at Google has you specify whether the callback is permanent or not. If it isn't permanent, its deleted right after executing. It is a little painful maintaining the memory of your arguments, but people have generally converged to packing them all into a heap allocated struct and deleting when appropriate.
[ Parent
| on HN ]
There are no comments on this comment yet.