Re: [Vala] evangelise talloc for vala memory management

2008-07-15 Thread Jürg Billeter
On Tue, 2008-07-15 at 11:05 +0100, Sam Liddicott wrote: > The reference counting that "vala" supports is only for gobject; which > is fine, but the glib vapi file shows that this is done by the vapi > file and not by vala as such. > > [CCode (ref_function = "g_object_ref", unref_function = > "g_ob

Re: [Vala] evangelise talloc for vala memory management

2008-07-15 Thread Sam Liddicott
I've re-read the vala docs on weak references and ownership transfer: http://live.gnome.org/Vala/Tutorial#head-e667accbcd04f19dd6a2c14a68e22b3cc2179e58 The reference counting that "vala" supports is only for gobject; which is fine, but the glib vapi file shows that this is done by the vapi file an

[Vala] evangelise talloc for vala memory management

2008-07-15 Thread Sam Liddicott
I find the way vala deals with weak references and ownership slightly confusing; because it requires to programmer to track ownership rather than the program; however as I'm also trying to put vala in Samba4, I thought I should point out the talloc library used for memory management; used for samb