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


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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]