Re: [Vala] RAII support in VALA¿??¿?



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]