Re: RFC: glocal - automatically freeing memory when it goes out of scope

2012-05-29 Thread Colin Walters
On Sun, 2012-05-27 at 11:20 +0200, Mikkel Kamstrup Erlandsen wrote: Attached a new version as a late update to this thread, but better than nothing I hope :-) I still haven't gotten around to sticking it in libegg (or even a bug). Sorry! I'll do that when I am more happy with what I have.

Re: RFC: glocal - automatically freeing memory when it goes out of scope

2012-05-29 Thread Mikkel Kamstrup Erlandsen
On 05/29/2012 05:36 PM, Colin Walters wrote: On Sun, 2012-05-27 at 11:20 +0200, Mikkel Kamstrup Erlandsen wrote: Attached a new version as a late update to this thread, but better than nothing I hope :-) I still haven't gotten around to sticking it in libegg (or even a bug). Sorry! I'll do

Re: RFC: glocal - automatically freeing memory when it goes out of scope

2012-05-29 Thread Mikkel Kamstrup Erlandsen
On 05/29/2012 07:23 PM, Ben Pfaff wrote: Mikkel Kamstrup Erlandsenmikkel.kamst...@canonical.com writes: I have been looking at gcc's cleanup attribute[1] that allows one to specify a callback that will be invoked when a variable goes out of scope. This allows one to play with automatically