Re: [Vala] RAII support in VALA¿??¿?
- From: "Martin (OPENGeoMap)" <martin opengeomap org>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] RAII support in VALA¿??¿?
- Date: Tue, 23 Sep 2008 16:34:56 +0200
hi:
There should be an interface in GLib like IClosable or IDisposable which
could be implemented for classes not only in GIO, but also in GNIO or
any other GObject library that provides access to resources, for example
to a database. Then Vala could take advantage of this interface.
Yes. I use this in a C bindings in C# to free resources.
Here we have a nice article about this:
http://blogs.msdn.com/colinth/archive/2007/08/08/c-for-c-users-a-doesn-t-act-like-destructor.aspx
Regards.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]