Re: [Vala] [ANNOUNCE] Vala 0.5.6 - Compiler for the GObject type system




On Sun, 2009-01-18 at 17:56 +0100, Jürg Billeter wrote:
change has been announced in a thread[1] on the mailing list. The
compiler does not yet distinguish between `weak' and `unowned',
however,
future versions will use g_object_*_weak_pointer for `weak' object
references, and you will need to change your code to `unowned' in
these
cases if you do not want to use weak pointers. The change is not
recommended in most cases, though.

`weak' as used in return types has been changed to `unowned' for
consistent terminology, as we will never be able to use real weak
pointers for return values. `weak' still works for return types,
though,
and I expect to keep it like that for the near future. However, it
might
get deprecated at some point.

Should someone add a line in the tutorial at
http://live.gnome.org/Vala/Tutorial#head-e667accbcd04f19dd6a2c14a68e22b3cc2179e58
to reflect this?

People who read the vapi files and not on the list will get surprised
with 'unowned'.

Regards,

Yu




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