Re: RFC: glocal - automatically freeing memory when it goes out of scope
- From: Ross Burton <ross burtonini com>
- To: Dominic Lachowicz <domlachowicz gmail com>
- Cc: gtk-devel-list <gtk-devel-list gnome org>, Morten Welinder <mortenw gnome org>
- Subject: Re: RFC: glocal - automatically freeing memory when it goes out of scope
- Date: Mon, 21 Nov 2011 15:51:43 +0000
On 21 November 2011 15:43, Dominic Lachowicz <domlachowicz gmail com> wrote:
> If you want this sort of behavior, use a language like C++ that
> supports stack-allocated objects natively. GtkMM and GlibMM already do
> this wonderfully. Using a GNU-C ism which probably won't work with
> most other C compilers (MSVC, LLVM, ICC, ...) feels wrong to me.
We need a micro-C++ binding that looks exactly like traditional
GObject C but also hooks up the nice features like stack allocated
objects. I don't like C++ but I'd consider a C++ compiler to compile
my C code if it could simplify memory management dramatically for
almost free. :)
Ross
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]