Of course, it is because of loop reference, while now vala's memory management is using reference counting. I suppose it's an inconvenience, to keep in mind, to create "weak" object instead of normal. Why don't you use libgc?
On Wed, 2007-12-26 at 17:03 +0100, Jürg Billeter wrote: > On Mon, 2007-12-17 at 00:31 +0300, Denis Cheremisov wrote: > > I have asked about them later, but didn't get any reply. I about if the > > function returning delegate uses not its local variables but heap. In > > this case delegates should have an addition first argument, pointing to > > the structure in the heap. For example: > > It would be nice to have closures in Vala, however we probably won't be > able to support it for arbitrary delegates as they usually don't have > the necessary support for memory management. We might be able to add > closures to Vala with some limits, I'm not planning on working on it > right now, though. > > Jürg >
_______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
