On Sat, 2008-01-19 at 20:17 +0300, Denis Cheremisov wrote:
> Of course, it is because of loop reference, while now vala's memory
> management is using reference counting.

No, it has nothing to do with reference cycles. The issue is that most C
functions accepting callbacks with a user_data pointer don't accept an
additional pointer to a free function for the user_data pointer. This
would be necessary to support closures with allocated user_data, though.

> I suppose it's an inconvenience, to keep in mind, to create "weak"
> object instead of normal. Why don't you use libgc?

While it's theoretically possible, it'd probably have more disadvantages
than advantages for Vala, especially for Vala libraries.

Jürg

_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to